Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] testy.rb - ruby testing that's mad at the world
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Bill Kelly, post: 4635295"] I think some examples might help. These are from Phlip's January 26, 2008 post Re: assert_{ 2.0 } on the XP list: assert_{ 'a topic' == topics['first'] } output: "a topic" == ( topics["first"] ) --> false topics --> {"first"=>"wrong topic"} ( topics["first"] ) --> "wrong topic". assert_{ [false] == shrew.accessories.map(&:active).uniq } output: [true] == shrew.accessories.map(&:active).uniq --> false shrew --> User 4 shrew.accessories --> [Accessory 501] shrew.accessories.map(&:active) --> [false] shrew.accessories.map(&:active).uniq --> [false]. It's badass. Phlip's work on assert_{ 2.0 } immediately left me with two impressons: 1. Having seen this, why would we ever accept anything less awesome from any testing rig? :) 2. The facilities needed to implement this kind of reflection should be part of ruby core. ....right? :) Regards, Bill [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] testy.rb - ruby testing that's mad at the world
Top