[rspec-users] DB transactions w/ RSpec

Francis Hwang sera at fhwang.net
Tue May 5 16:29:32 EDT 2009


Sorry if this has been answered elsewhere, Google was not very helpful
to me on this one. If I'm running a model spec and am one of those
benighted souls who wants to hit the DB while doing so, is there a way
for me to tell RSpec to skip transactions? In Test::Unit I can say
"uses_transaction :test_should_do_something", but am not sure what the
analogous thing would be in RSpec.

Thanks in advance,
Francis


More information about the rspec-users mailing list