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-0.2.5 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.5 spec/support/database_cleaner.rb
doorkeeper_sso-0.2.3 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.2 spec/support/database_cleaner.rb
doorkeeper_sso-0.2.2 spec/support/database_cleaner.rb
doorkeeper_sso_client-0.2.1 spec/support/database_cleaner.rb
doorkeeper_sso-0.2.0 spec/support/database_cleaner.rb
doorkeeper_sso-0.1.0.pre.alpha spec/support/database_cleaner.rb
doorkeeper_sso-0.0.4 spec/support/database_cleaner.rb
doorkeeper_sso-0.0.3 spec/support/database_cleaner.rb