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
f45740e0
Commit
f45740e0
authored
Feb 10, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed rspec and spinach tests
parent
389fb420
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
app/controllers/admin/push_rules_controller.rb
app/controllers/admin/push_rules_controller.rb
+0
-1
app/controllers/projects/mirrors_controller.rb
app/controllers/projects/mirrors_controller.rb
+4
-5
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+1
-1
spec/requests/projects/mirrors_controller_spec.rb
spec/requests/projects/mirrors_controller_spec.rb
+3
-3
No files found.
app/controllers/admin/push_rules_controller.rb
View file @
f45740e0
...
...
@@ -4,7 +4,6 @@ class Admin::PushRulesController < Admin::ApplicationController
respond_to
:html
def
show
redirect_to
namespace_project_settings_repository_path
(
@project
.
namespace
,
@project
)
end
def
update
...
...
app/controllers/projects/mirrors_controller.rb
View file @
f45740e0
...
...
@@ -21,11 +21,11 @@ class Projects::MirrorsController < Projects::ApplicationController
else
flash
[
:notice
]
=
"Mirroring settings were successfully updated."
end
redirect_to
namespace_project_mirror_path
(
@project
.
namespace
,
@project
)
else
render
:show
flash
[
:alert
]
=
@project
.
errors
.
full_messages
.
join
(
','
).
html_safe
end
redirect_to
namespace_project_settings_repository_path
(
@project
.
namespace
,
@project
)
end
def
update_now
...
...
@@ -36,8 +36,7 @@ class Projects::MirrorsController < Projects::ApplicationController
@project
.
update_mirror
flash
[
:notice
]
=
"The repository is being updated..."
end
redirect_back_or_default
(
default:
namespace_project_path
(
@project
.
namespace
,
@project
))
redirect_to
namespace_project_settings_repository_path
(
@project
.
namespace
,
@project
)
end
private
...
...
features/steps/shared/paths.rb
View file @
f45740e0
...
...
@@ -284,7 +284,7 @@ module SharedPaths
end
step
'I visit project push rules page'
do
visit
namespace_project_
push_rules
_path
(
@project
.
namespace
,
@project
)
visit
namespace_project_
settings_repository
_path
(
@project
.
namespace
,
@project
)
end
step
'I visit project deploy keys page'
do
...
...
spec/requests/projects/mirrors_controller_spec.rb
View file @
f45740e0
...
...
@@ -24,9 +24,9 @@ describe Projects::MirrorsController do
mirror_trigger_builds:
'0'
}
expect
(
response
).
to
have_http_status
:success
expect
(
response
).
to
re
nder_template
(
:show
)
expect
(
response
.
body
).
to
include
(
'Import url can't be blank'
)
expect
(
response
).
to
have_http_status
(
302
)
expect
(
response
).
to
re
direct_to
(
namespace_project_settings_repository_path
(
project
.
namespace
,
project
)
)
expect
(
flash
[
:alert
]).
to
include
(
"Import url can't be blank"
)
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