Fix Hook.new call sites in tests
This commit is contained in:
parent
da769135fe
commit
bc97931e2d
|
@ -99,6 +99,6 @@ feature 'Import/Export - project import integration test', js: true do
|
|||
end
|
||||
|
||||
def project_hook_exists?(project)
|
||||
Gitlab::Git::Hook.new('post-receive', project).exists?
|
||||
Gitlab::Git::Hook.new('post-receive', project.repository.raw_repository).exists?
|
||||
end
|
||||
end
|
||||
|
|
|
@ -34,7 +34,7 @@ describe Gitlab::ImportExport::RepoRestorer do
|
|||
it 'has the webhooks' do
|
||||
restorer.restore
|
||||
|
||||
expect(Gitlab::Git::Hook.new('post-receive', project)).to exist
|
||||
expect(Gitlab::Git::Hook.new('post-receive', project.repository.raw_repository)).to exist
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue