Sha256: 5a8d07a690e793cd1ae4449fb272b3ae5aa97811b64cfb278aafd939cadc1a7d

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

require 'spec_helper'

describe 'DatabaseRewinder::InsertRecorder#execute' do
  before do
    DatabaseRewinder.init
    Foo.create! name: 'foo1'
    Bar.connection.execute "insert into bars (name) values ('bar1')"
    DatabaseRewinder.cleaners
  end
  subject { DatabaseRewinder.instance_variable_get(:'@cleaners').detect {|c| c.db == ':memory:'} }
  its(:inserted_tables) { should == %w(foos bars) }
  its(:pool) { should be }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
database_rewinder-0.4.2 spec/active_record_monkey_spec.rb
database_rewinder-0.4.1 spec/active_record_monkey_spec.rb
database_rewinder-0.4.0 spec/active_record_monkey_spec.rb
database_rewinder-0.3.0 spec/active_record_monkey_spec.rb
database_rewinder-0.2.0 spec/active_record_monkey_spec.rb
database_rewinder-0.1.0 spec/active_record_monkey_spec.rb
database_rewinder-0.0.3 spec/active_record_monkey_spec.rb
database_rewinder-0.0.2 spec/active_record_monkey_spec.rb