Commit bc97931e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix Hook.new call sites in tests

parent da769135
No related merge requests found
......@@ -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
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