Sha256: 0634ee2bc99020106c6f653dc0adcfa225449b0885b23ed536d405b8e757daf2

Contents?: true

Size: 393 Bytes

Versions: 30

Compression:

Stored size: 393 Bytes

Contents

RSpec.configure do |config|

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

  config.before(:each) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each, :js => true) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end

end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
doorkeeper_sso_client-0.4.10 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.9 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.8 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.6 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.3 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.1 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.7 spec/support/database_cleaner.rb
doorkeeper_sso-0.4.0 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.6 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.5 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.3 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.2 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.1 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.4.0 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.3.0 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.9 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.8 spec/support/database_cleaner.rb
doorkeeper_sso-0.2.7 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.7 spec/support/database_cleaner.rb
doorkeeper_sso-0.2.6 spec/support/database_cleaner.rb