diff options
Diffstat (limited to 'spec/models/shard_spec.rb')
-rw-r--r-- | spec/models/shard_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/shard_spec.rb b/spec/models/shard_spec.rb index 38729fa1758..298441fb4c4 100644 --- a/spec/models/shard_spec.rb +++ b/spec/models/shard_spec.rb @@ -38,12 +38,12 @@ RSpec.describe Shard do expect(described_class) .to receive(:find_by) - .with(name: 'new_shard') + .with({ name: 'new_shard' }) .and_return(nil, shard_created_by_others) expect(described_class) .to receive(:create) - .with(name: 'new_shard') + .with({ name: 'new_shard' }) .and_raise(ActiveRecord::RecordNotUnique, 'fail') .once |