Commit 3b02a5df authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Update spec to stub `load_schema`

This updates the spec to make it consistent with
the code that uses the new method
parent 1111e7c4
......@@ -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