Skip to content

Commit

Permalink
spec helper
Browse files Browse the repository at this point in the history
  • Loading branch information
johndavid400 committed Feb 6, 2012
1 parent 7fe87ab commit d7ea7c2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -27,5 +27,16 @@
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
config.use_transactional_fixtures = false

config.before :each do
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.start
Supplier.build(:name => "Test Supplier", :title => "Test Title")
end

config.after do
DatabaseCleaner.clean
end

end

0 comments on commit d7ea7c2

Please sign in to comment.