Commit 24aa2ab0 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '11282-fix-geo-test' into 'master'

Update test to stub `load_schema` instead of `load_schema_for`

Closes #11282

See merge request gitlab-org/gitlab-ee!11468
parents fe955b72 3b02a5df
......@@ -104,15 +104,15 @@ describe Gitlab::Geo::DatabaseTasks do
describe described_class::Test do
describe '.load' do
it 'calls ActiveRecord::Tasks::DatabaseTasks.load_schema_for' do
expect(ActiveRecord::Tasks::DatabaseTasks).to receive(:load_schema_for)
it 'calls ActiveRecord::Tasks::DatabaseTasks.load_schema' do
expect(ActiveRecord::Tasks::DatabaseTasks).to receive(:load_schema)
subject.load
end
end
describe '.purge' do
it 'calls ActiveRecord::Tasks::DatabaseTasks.load_schema_for' do
it 'calls ActiveRecord::Tasks::DatabaseTasks.purge' do
expect(ActiveRecord::Tasks::DatabaseTasks).to receive(:purge)
subject.purge
......
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