Fix spec/services/geo/hashed_storage_migration_service_spec.rb

parent f0f9371b
require 'spec_helper'
describe Geo::HashedStorageMigrationService do
let(:project) { create(:project, :repository) }
let!(:project) { create(:project, :repository) }
let(:old_path) { project.full_path }
let(:new_path) { "#{old_path}+renamed" }
......@@ -9,6 +9,10 @@ describe Geo::HashedStorageMigrationService do
describe '#execute' do
context 'project backed by legacy storage' do
before do
project.update_attribute(:storage_version, Project::LATEST_STORAGE_VERSION)
end
it 'moves the project repositories' do
expect_any_instance_of(Geo::MoveRepositoryService).to receive(:execute)
.once.and_return(true)
......
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