Sha256: cc239453ad09f2e63876fa62e07e703985fe8ab52f8caa35cacc89a91c96d1ac

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

$LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))
$LOAD_PATH.unshift(__dir__)

require 'rails'
require 'database_rewinder'
require 'fake_app'

RSpec.configure do |config|
  config.before :all do
    CreateAllTables.up unless ActiveRecord::Base.connection.table_exists? 'foos'
  end
  config.after :each do
    [Foo, Bar, Baz].each{|m| m.delete_all }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
database_rewinder-0.4.2 spec/spec_helper.rb
database_rewinder-0.4.1 spec/spec_helper.rb
database_rewinder-0.4.0 spec/spec_helper.rb
database_rewinder-0.3.0 spec/spec_helper.rb