Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
bc97931e
Commit
bc97931e
authored
Aug 22, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Hook.new call sites in tests
parent
da769135
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/features/projects/import_export/import_file_spec.rb
spec/features/projects/import_export/import_file_spec.rb
+1
-1
spec/lib/gitlab/import_export/repo_restorer_spec.rb
spec/lib/gitlab/import_export/repo_restorer_spec.rb
+1
-1
No files found.
spec/features/projects/import_export/import_file_spec.rb
View file @
bc97931e
...
@@ -99,6 +99,6 @@ feature 'Import/Export - project import integration test', js: true do
...
@@ -99,6 +99,6 @@ feature 'Import/Export - project import integration test', js: true do
end
end
def
project_hook_exists?
(
project
)
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
end
end
spec/lib/gitlab/import_export/repo_restorer_spec.rb
View file @
bc97931e
...
@@ -34,7 +34,7 @@ describe Gitlab::ImportExport::RepoRestorer do
...
@@ -34,7 +34,7 @@ describe Gitlab::ImportExport::RepoRestorer do
it
'has the webhooks'
do
it
'has the webhooks'
do
restorer
.
restore
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
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment