Skip to content

Commit f543c90

Browse files
committed
Change expectation to allow for a cascade option
1 parent 27c1a4a commit f543c90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/database_cleaner/active_record/truncation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
it "only truncates non-empty tables" do
9696
User.create!
9797

98-
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users'])
98+
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users'], {:truncate_option=>:restrict})
9999
strategy.clean
100100
end
101101
end

0 commit comments

Comments
 (0)