Skip to content

Commit a1fff55

Browse files
Use an explicit hash to avoid ambiguity between keyword and hash arguments
1 parent e7a00b4 commit a1fff55

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/database_cleaner/active_record/base_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module ActiveRecord
6262
allow(::ActiveRecord::Base)
6363
.to receive(:configurations).and_return(ac_db_configurations_mock)
6464
allow(ac_db_configurations_mock)
65-
.to receive(:configs_for).with(name: my_db.to_s).and_return(hash_config_mock)
65+
.to receive(:configs_for).with({ name: my_db.to_s }).and_return(hash_config_mock)
6666
end
6767

6868
let(:ac_db_configurations_mock) do

0 commit comments

Comments
 (0)