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
7fc0ca84
Commit
7fc0ca84
authored
Aug 09, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve more MirrorsController spec failures due to missing anchor
parent
7024f4b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/spec/controllers/projects/mirrors_controller_spec.rb
ee/spec/controllers/projects/mirrors_controller_spec.rb
+2
-2
ee/spec/requests/projects/mirrors_controller_spec.rb
ee/spec/requests/projects/mirrors_controller_spec.rb
+1
-1
No files found.
ee/spec/controllers/projects/mirrors_controller_spec.rb
View file @
7fc0ca84
...
@@ -199,7 +199,7 @@ describe Projects::MirrorsController do
...
@@ -199,7 +199,7 @@ describe Projects::MirrorsController do
it
'processes a successful update'
do
it
'processes a successful update'
do
do_put
(
project
,
username_only_import_url:
"https://updated.example.com"
)
do_put
(
project
,
username_only_import_url:
"https://updated.example.com"
)
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
end
end
...
@@ -208,7 +208,7 @@ describe Projects::MirrorsController do
...
@@ -208,7 +208,7 @@ describe Projects::MirrorsController do
it
'processes an unsuccessful update'
do
it
'processes an unsuccessful update'
do
do_put
(
project
,
username_only_import_url:
"ftp://invalid.invalid'"
)
do_put
(
project
,
username_only_import_url:
"ftp://invalid.invalid'"
)
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
(
/is blocked/
)
expect
(
flash
[
:alert
]).
to
match
(
/is blocked/
)
end
end
end
end
...
...
ee/spec/requests/projects/mirrors_controller_spec.rb
View file @
7fc0ca84
...
@@ -25,7 +25,7 @@ describe Projects::MirrorsController do
...
@@ -25,7 +25,7 @@ describe Projects::MirrorsController do
}
}
expect
(
response
).
to
have_gitlab_http_status
(
302
)
expect
(
response
).
to
have_gitlab_http_status
(
302
)
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
include
(
"Import url can't be blank"
)
expect
(
flash
[
:alert
]).
to
include
(
"Import url can't be blank"
)
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