Re:Learn how to test Rails using Test::Unit instead of Rspec
by rhizome on Thursday March 21, 2013 @06:27PM
(#5419645)
You know, recently I had reason to look into the teardown method (DatabaseCleaner, dontchaknow), and I never did find anything conclusive that it was something that test-unit used. Sure, it was mentioned in many many DatabaseCleaner questions/answers/threads, but nothing I could really rely on since invariably these were also using Rspec. That is, my unanswered question was "Is teardown solely an Rspec thing?"
[ Parent
| on HN ]
Re:Learn how to test Rails using Test::Unit instead of Rspec
by gyardley on Thursday March 21, 2013 @10:11PM
(#5420938)
Setup and teardown are in the Rails testing guide.
http://guides.rubyonrails.org/testing.html#setup-and-teardow...