I'd like to try out Jeremy Mcanally's context gem for testing:
http://github.com/jeremymcanally/context/tree/master
It does not work out of the box with Rails 2.3.x, anyone got it working?
EDIT hi mike, tx for ur help. i installed the gem like u said, and have added "require 'context'" to test_helper.rb however, it stil doesn't seem to b behaving correctly. the followin unit test is failing as @truth is nil.
context "a simple truth" do
before do
@truth = true
end
test "the truth1" do
assert @truth
end
end
any idea?
EDIT screw it... i installed shoulda http://github.com/thoughtbot/shoulda/tree/master even just for the context blocks (for now anyway) and it's working great.