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
Jérome Perrin
gitlab-ce
Commits
fc061c2e
Commit
fc061c2e
authored
May 03, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop failures
parent
03144e1c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
db/migrate/20170427215854_create_redirect_routes.rb
db/migrate/20170427215854_create_redirect_routes.rb
+0
-1
spec/controllers/groups_controller_spec.rb
spec/controllers/groups_controller_spec.rb
+4
-4
spec/features/projects/features_visibility_spec.rb
spec/features/projects/features_visibility_spec.rb
+2
-2
No files found.
db/migrate/20170427215854_create_redirect_routes.rb
View file @
fc061c2e
class
CreateRedirectRoutes
<
ActiveRecord
::
Migration
class
CreateRedirectRoutes
<
ActiveRecord
::
Migration
# Set this constant to true if this migration requires downtime.
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
DOWNTIME
=
false
...
...
spec/controllers/groups_controller_spec.rb
View file @
fc061c2e
...
@@ -144,13 +144,13 @@ describe GroupsController do
...
@@ -144,13 +144,13 @@ describe GroupsController do
it
'does not 404'
do
it
'does not 404'
do
delete
:destroy
,
id:
group
.
to_param
.
upcase
delete
:destroy
,
id:
group
.
to_param
.
upcase
expect
(
response
).
to_not
have_http_status
(
404
)
expect
(
response
).
not_to
have_http_status
(
404
)
end
end
it
'does not redirect to the correct casing'
do
it
'does not redirect to the correct casing'
do
delete
:destroy
,
id:
group
.
to_param
.
upcase
delete
:destroy
,
id:
group
.
to_param
.
upcase
expect
(
response
).
to_not
redirect_to
(
group_path
(
group
.
to_param
))
expect
(
response
).
not_to
redirect_to
(
group_path
(
group
.
to_param
))
end
end
end
end
...
@@ -190,13 +190,13 @@ describe GroupsController do
...
@@ -190,13 +190,13 @@ describe GroupsController do
it
'does not 404'
do
it
'does not 404'
do
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
expect
(
response
).
to_not
have_http_status
(
404
)
expect
(
response
).
not_to
have_http_status
(
404
)
end
end
it
'does not redirect to the correct casing'
do
it
'does not redirect to the correct casing'
do
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
post
:update
,
id:
group
.
to_param
.
upcase
,
group:
{
path:
'new_path'
}
expect
(
response
).
to_not
redirect_to
(
group_path
(
group
.
to_param
))
expect
(
response
).
not_to
redirect_to
(
group_path
(
group
.
to_param
))
end
end
end
end
...
...
spec/features/projects/features_visibility_spec.rb
View file @
fc061c2e
...
@@ -68,7 +68,7 @@ describe 'Edit Project Settings', feature: true do
...
@@ -68,7 +68,7 @@ describe 'Edit Project Settings', feature: true do
end
end
describe
'project features visibility pages'
do
describe
'project features visibility pages'
do
let
(
:tools
)
{
let
(
:tools
)
do
{
{
builds:
namespace_project_pipelines_path
(
project
.
namespace
,
project
),
builds:
namespace_project_pipelines_path
(
project
.
namespace
,
project
),
issues:
namespace_project_issues_path
(
project
.
namespace
,
project
),
issues:
namespace_project_issues_path
(
project
.
namespace
,
project
),
...
@@ -76,7 +76,7 @@ describe 'Edit Project Settings', feature: true do
...
@@ -76,7 +76,7 @@ describe 'Edit Project Settings', feature: true do
snippets:
namespace_project_snippets_path
(
project
.
namespace
,
project
),
snippets:
namespace_project_snippets_path
(
project
.
namespace
,
project
),
merge_requests:
namespace_project_merge_requests_path
(
project
.
namespace
,
project
),
merge_requests:
namespace_project_merge_requests_path
(
project
.
namespace
,
project
),
}
}
}
end
context
'normal user'
do
context
'normal user'
do
before
do
before
do
...
...
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