Created
March 23, 2010 06:19
-
-
Save dchelimsky/340887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rspec.configure do |c| | |
c.before do | |
unless running_example.metadata[:transactions] == :off | |
puts "RUNNING TRANSACTIONS" | |
end | |
end | |
end | |
describe "foo", :transactions => :on do | |
it "does something" do | |
# .... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment