diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2019-03-01 07:57:11 +0100 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2019-03-01 15:49:20 +0100 |
commit | 264394f6d39c57e6863742ae0bf7c300156185ad (patch) | |
tree | f16e209b5f46c6ba6450638ca2c2199614723ee7 /spec/services/projects/hashed_storage/migrate_repository_service_spec.rb | |
parent | 7c8920c9dc6449f9d9a76dac619e6829398ec7db (diff) | |
download | gitlab-ce-264394f6d39c57e6863742ae0bf7c300156185ad.tar.gz |
Extract and simplify more code into BaseRepositoryService`
`try_to_set_repository_read_only!` is now on the Base class.
Simplified Exception classes from 2 to 1 with a more descriptive name.
Diffstat (limited to 'spec/services/projects/hashed_storage/migrate_repository_service_spec.rb')
-rw-r--r-- | spec/services/projects/hashed_storage/migrate_repository_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb b/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb index cd56337420b..e77e2198439 100644 --- a/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb +++ b/spec/services/projects/hashed_storage/migrate_repository_service_spec.rb @@ -28,7 +28,7 @@ describe Projects::HashedStorage::MigrateRepositoryService do it 'fails when a git operation is in progress' do allow(project).to receive(:repo_reference_count) { 1 } - expect { service.execute }.to raise_error(Projects::HashedStorage::RepositoryMigrationError) + expect { service.execute }.to raise_error(Projects::HashedStorage::RepositoryInUseError) end end |