summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-06-07 11:06:04 -0400
committerMicaël Bergeron <mbergeron@gitlab.com>2018-06-07 12:06:00 -0400
commit50872bcc242a582c7e3af25df4d32e1c3e0a28f3 (patch)
tree73a2db2f25a2fe27dc4ffd343bcaebabfc0739bb /spec/support
parenta667de18d3b1d798992e1441ce774c63f801c07e (diff)
downloadgitlab-ce-50872bcc242a582c7e3af25df4d32e1c3e0a28f3.tar.gz
fix the failing spec
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/uploaders/object_storage_shared_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
index 6352f1527cd..1ecddc14d58 100644
--- a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
+++ b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
@@ -85,13 +85,13 @@ shared_examples "migrates" do |to_store:, from_store: nil|
it 'does not execute migrate!' do
expect(subject).not_to receive(:unsafe_migrate!)
- expect { migrate(to) }.to raise_error('exclusive lease already taken')
+ expect { migrate(to) }.to raise_error(ObjectStorage::ExclusiveLeaseTaken)
end
it 'does not execute use_file' do
expect(subject).not_to receive(:unsafe_use_file)
- expect { subject.use_file }.to raise_error('exclusive lease already taken')
+ expect { subject.use_file }.to raise_error(ObjectStorage::ExclusiveLeaseTaken)
end
after do