I have project where I have to use Test::Unit. Fine, but I am used to RSpec DSL, especially when it comes to user stories (features). So, here is simple module that shows how you easily can use RSpec-like expressions in default testing framework.
Just save that module in a file that will be required by your test helper and include in you test unit spec.
With Test::Unit::Feature you have a simple DSL. Soon we'll publish in on github as a gem. Now it works with Ruby 1.8.7 and Rails 2.3.10. I didn't test it with the latest stuff.
Done with Jorge :)
No comments:
Post a Comment