Sha256: 1f6e887f4d792e2b88df0cde26c5af94d00cfaefaff7e4eb306b63d9f267c42b

Contents?: true

Size: 282 Bytes

Versions: 13

Compression:

Stored size: 282 Bytes

Contents

#encoding: utf-8
RSpec.configure do |config|

  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
#    DatabaseCleaner.clean_with :truncation
  end

  config.around(:each) do |example|
    DatabaseCleaner.start
    example.run
    DatabaseCleaner.clean
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
proxy_tester-0.1.3 spec/support/database_cleaner.rb
proxy_tester-0.1.2 spec/support/database_cleaner.rb
proxy_tester-0.1.1 spec/support/database_cleaner.rb
proxy_tester-0.1.0 spec/support/database_cleaner.rb
proxy_tester-0.0.9 spec/support/database_cleaner.rb
proxy_tester-0.0.8 spec/support/database_cleaner.rb
proxy_tester-0.0.7 spec/support/database_cleaner.rb
proxy_tester-0.0.6 spec/support/database_cleaner.rb
proxy_tester-0.0.5 spec/support/database_cleaner.rb
proxy_tester-0.0.4 spec/support/database_cleaner.rb
proxy_tester-0.0.3 spec/support/database_cleaner.rb
proxy_tester-0.0.2 spec/support/database_cleaner.rb
proxy_tester-0.0.1 spec/support/database_cleaner.rb