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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c3d0545a
Commit
c3d0545a
authored
Aug 08, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spec failures
parent
c90cfbd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/controllers/projects/deploy_keys_controller_spec.rb
spec/controllers/projects/deploy_keys_controller_spec.rb
+1
-1
spec/controllers/projects/mirrors_controller_spec.rb
spec/controllers/projects/mirrors_controller_spec.rb
+2
-2
No files found.
spec/controllers/projects/deploy_keys_controller_spec.rb
View file @
c3d0545a
...
@@ -19,7 +19,7 @@ describe Projects::DeployKeysController do
...
@@ -19,7 +19,7 @@ describe Projects::DeployKeysController do
it
'redirects to blob'
do
it
'redirects to blob'
do
get
:index
,
params
get
:index
,
params
expect
(
response
).
to
redirect_to
(
namespace_project_settings_repository_path
(
params
))
expect
(
response
).
to
redirect_to
(
project_settings_repository_path
(
project
,
anchor:
'js-deploy-keys-settings'
))
end
end
end
end
...
...
spec/controllers/projects/mirrors_controller_spec.rb
View file @
c3d0545a
...
@@ -36,7 +36,7 @@ describe Projects::MirrorsController do
...
@@ -36,7 +36,7 @@ describe Projects::MirrorsController do
it
'processes a successful update'
do
it
'processes a successful update'
do
do_put
(
project
,
remote_mirrors_attributes:
remote_mirror_attributes
)
do_put
(
project
,
remote_mirrors_attributes:
remote_mirror_attributes
)
expect
(
response
).
to
redirect_to
(
project_settings_repository_path
(
project
))
expect
(
response
).
to
redirect_to
(
project_settings_repository_path
(
project
,
anchor:
'js-push-remote-settings'
))
expect
(
flash
[
:notice
]).
to
match
(
/successfully updated/
)
expect
(
flash
[
:notice
]).
to
match
(
/successfully updated/
)
end
end
...
@@ -53,7 +53,7 @@ describe Projects::MirrorsController do
...
@@ -53,7 +53,7 @@ describe Projects::MirrorsController do
it
'processes an unsuccessful update'
do
it
'processes an unsuccessful update'
do
do_put
(
project
,
remote_mirrors_attributes:
remote_mirror_attributes
)
do_put
(
project
,
remote_mirrors_attributes:
remote_mirror_attributes
)
expect
(
response
).
to
redirect_to
(
project_settings_repository_path
(
project
))
expect
(
response
).
to
redirect_to
(
project_settings_repository_path
(
project
,
anchor:
'js-push-remote-settings'
))
expect
(
flash
[
:alert
]).
to
match
(
/Only allowed protocols are/
)
expect
(
flash
[
:alert
]).
to
match
(
/Only allowed protocols are/
)
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