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