Sha256: 3d45c9a0c0594bc496d3b2b87778596daf7b2a2281edfa6ab46b79965df5a707

Contents?: true

Size: 598 Bytes

Versions: 11

Compression:

Stored size: 598 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'active_support/all'
require 'active_support/testing/time_helpers'
require 'database_cleaner'

Bundler.require(:default, :test)

ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')

RSpec.configure do |config|

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

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

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

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

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
copyable-0.3.5 spec/spec_helper.rb
copyable-0.3.3 spec/spec_helper.rb
copyable-0.3.2 spec/spec_helper.rb
copyable-0.3.1 spec/spec_helper.rb
copyable-0.3.0 spec/spec_helper.rb
copyable-0.2.0 spec/spec_helper.rb
copyable-0.1.2 spec/spec_helper.rb
copyable-0.1.1 spec/spec_helper.rb
copyable-0.1.0 spec/spec_helper.rb
copyable-0.0.2 spec/spec_helper.rb
copyable-0.0.1 spec/spec_helper.rb