[rspec-users] before(:all) leaves records in database

Zhi-Qiang Lei zhiqiang.lei at gmail.com
Fri Nov 25 09:04:08 EST 2011


Hi,

When I test my Rails controller, I find that records created in before(:all) remain in database while records created in before(:each) and let are wiped out after testing. This made me run "rake test:prepare" for every new test. Is that normal?

Best regards,
Zhi-Qiang Lei
zhiqiang.lei at gmail.com



More information about the rspec-users mailing list