Commit e34dd1e6 authored by Andreas Brandl's avatar Andreas Brandl

Tidy up specs

parent f4d7293c
...@@ -237,8 +237,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do ...@@ -237,8 +237,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
expect(buffer.read).to include("\"class\":\"#{model.class}\"") expect(buffer.read).to include("\"class\":\"#{model.class}\"")
end end
using RSpec::Parameterized::TableSyntax
where(raise_on_exhaustion: [true, false]) where(raise_on_exhaustion: [true, false])
with_them do with_them do
...@@ -261,7 +259,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do ...@@ -261,7 +259,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers::V2 do
it 'defaults to disallowing subtransactions' do it 'defaults to disallowing subtransactions' do
with_lock_retries = double with_lock_retries = double
expect(Gitlab::Database::WithLockRetries).to receive(:new).with(hash_including(allow_savepoints: false)).and_return(with_lock_retries) expect(Gitlab::Database::WithLockRetries).to receive(:new).with(hash_including(allow_savepoints: false)).and_return(with_lock_retries)
expect(with_lock_retries).to receive(:run).with(raise_on_exhaustion: false) expect(with_lock_retries).to receive(:run).with(raise_on_exhaustion: false)
......
...@@ -2310,8 +2310,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers do ...@@ -2310,8 +2310,6 @@ RSpec.describe Gitlab::Database::MigrationHelpers do
expect(buffer.read).to include("\"class\":\"#{model.class}\"") expect(buffer.read).to include("\"class\":\"#{model.class}\"")
end end
using RSpec::Parameterized::TableSyntax
where(raise_on_exhaustion: [true, false]) where(raise_on_exhaustion: [true, false])
with_them do with_them do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment