Skip to content

Commit

Permalink
Switch sample spec to truncation
Browse files Browse the repository at this point in the history
Postgresql was experiencing "No live threads left. Deadlock?" under
Rails 5.1.
  • Loading branch information
jhawthorn committed May 16, 2017
1 parent 1065f74 commit 9f9e671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
c.syntax = :expect
end

config.before(:suite) do
config.before(:each) do
DatabaseCleaner.clean_with(:truncation)
end

# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, comment the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
config.use_transactional_fixtures = false

config.include FactoryGirl::Syntax::Methods
config.fail_fast = ENV['FAIL_FAST'] || false
Expand Down

0 comments on commit 9f9e671

Please sign in to comment.