diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-06-30 01:11:33 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-06-30 01:13:37 +0300 |
commit | b3b034b849800e71ce8872a6f4db8fb6b9b91b4e (patch) | |
tree | 81072601a81bc1b0efbf4bee123fc396f652720a /spec/services/projects | |
parent | 2446252cfd1f5a7d7329099e8d6371fcffa99971 (diff) |
Expires full_path cache after repository is transferred
Diffstat (limited to 'spec/services/projects')
-rw-r--r-- | spec/services/projects/transfer_service_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/projects/transfer_service_spec.rb b/spec/services/projects/transfer_service_spec.rb index 76c52d55ae5..441a5276c56 100644 --- a/spec/services/projects/transfer_service_spec.rb +++ b/spec/services/projects/transfer_service_spec.rb @@ -30,6 +30,12 @@ describe Projects::TransferService, services: true do transfer_project(project, user, group) end + it 'expires full_path cache' do + expect(project).to receive(:expires_full_path_cache) + + transfer_project(project, user, group) + end + it 'executes system hooks' do expect_any_instance_of(Projects::TransferService).to receive(:execute_system_hooks) |