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="Brian Candler, post: 4635264"] I'm afraid I'm missing something. Why is this better than assert_equal 42, ultimate.answer, "name" ? Hear hear to that! Well, it would be nice to know what those 2 methods calls were, and their semantics, without reverse-engineering the code. Are these Testy.testing and Result#check ? I did find the gem, and installed it, but the generated rdoc is entirely free of comments or explanation. The two samples don't really help me understand why testy is good or how to use it effectively, since they are both more verbose that what I would have written in test/unit to get the same result. How would I do something equivalent to these? assert_raises(RuntimeError) { somecode } assert_match /error/i, response.body I think I'd also miss the ability to have setup and teardown before each test (something which 'shoulda' makes very simple and effective). Please don't get me wrong - I'm absolutely interested in something which will make testing simpler and easier, if I can understand how to use it effectively. Regards, Brian. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] testy.rb - ruby testing that's mad at the world
Top