Permalink
Browse files

Transactions description

- Closes #321
  • Loading branch information...
1 parent 0342607 commit 62eed8cda51afcdb821e479f574dd5327690ed3c @burtlo burtlo committed with dchelimsky Feb 8, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 features/model_specs/transactional_examples.feature
@@ -1,5 +1,10 @@
Feature: transactional examples
+ By default rspec executes each individual example in a transaction.
+
+ You can also explicitly enable/disable transactions the configuration
+ property 'use_transactional_examples'.
+
Scenario: run in transactions (default)
Given a file named "spec/models/widget_spec.rb" with:
"""
@@ -84,7 +89,7 @@ Feature: transactional examples
"""
require "spec_helper"
- describe Thing do
+ describe Thing do
fixtures :things
it "fixture method defined" do
things(:one)

0 comments on commit 62eed8c

Please sign in to comment.