Skip to content

Commit 567f0b8

Browse files
committed
Patch test expectation
1 parent 0d548f9 commit 567f0b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/database_cleaner/active_record/truncation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
it "specifies cascade when truncating" do
107107
User.create!({name: 1})
108108

109-
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users', 'agents'], {truncate_option: :cascade})
109+
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users', 'agents'].sort, {truncate_option: :cascade})
110110
strategy.clean
111111
end
112112
end
@@ -117,7 +117,7 @@
117117
it "specifies restrict when truncating" do
118118
User.create!
119119

120-
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users', 'agents'], {truncate_option: :restrict})
120+
expect(strategy.send(:connection)).to receive(:truncate_tables).with(['users', 'agents'].sort, {truncate_option: :restrict})
121121
strategy.clean
122122
end
123123
end

0 commit comments

Comments
 (0)