Fix Hook.new call sites in tests

This commit is contained in:
Jacob Vosmaer 2017-08-22 16:27:18 +02:00
parent da769135fe
commit bc97931e2d
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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