Commit d7f93733 authored by Nick Thomas's avatar Nick Thomas

Fix an intermittent spec failure in spec/lib/gitlab/geo/database_tasks_spec.rb

parent 24ad3102
...@@ -65,7 +65,9 @@ describe Gitlab::Geo::DatabaseTasks do ...@@ -65,7 +65,9 @@ describe Gitlab::Geo::DatabaseTasks do
describe described_class::Migrate do describe described_class::Migrate do
describe '.up' do describe '.up' do
it 'requires ENV["VERSION"] to be set' do it 'requires ENV["VERSION"] to be set' do
expect { subject.up }.to raise_error(String) stub_env('VERSION', nil)
expect { subject.up }.to raise_error(/VERSION is required/)
end end
it 'calls ActiveRecord::Migrator.run' do it 'calls ActiveRecord::Migrator.run' do
...@@ -78,7 +80,9 @@ describe Gitlab::Geo::DatabaseTasks do ...@@ -78,7 +80,9 @@ describe Gitlab::Geo::DatabaseTasks do
describe '.down' do describe '.down' do
it 'requires ENV["VERSION"] to be set' do it 'requires ENV["VERSION"] to be set' do
expect { subject.down }.to raise_error(String) stub_env('VERSION', nil)
expect { subject.down }.to raise_error(/VERSION is required/)
end end
it 'calls ActiveRecord::Migrator.run' do it 'calls ActiveRecord::Migrator.run' 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