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
36ede008
Commit
36ede008
authored
May 18, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rubocop-empty-example-group' into 'master'
Enable the RSpec/EmptyExampleGroup cop See merge request !11497
parents
96160270
d900f19d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
37 deletions
+33
-37
.rubocop.yml
.rubocop.yml
+6
-0
.rubocop_todo.yml
.rubocop_todo.yml
+0
-5
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+0
-16
spec/models/project_snippet_spec.rb
spec/models/project_snippet_spec.rb
+0
-3
spec/models/protected_branch_spec.rb
spec/models/protected_branch_spec.rb
+0
-3
spec/routing/routing_spec.rb
spec/routing/routing_spec.rb
+27
-10
No files found.
.rubocop.yml
View file @
36ede008
...
@@ -969,6 +969,12 @@ RSpec/DescribeSymbol:
...
@@ -969,6 +969,12 @@ RSpec/DescribeSymbol:
RSpec/DescribedClass
:
RSpec/DescribedClass
:
Enabled
:
true
Enabled
:
true
# Configuration parameters: CustomIncludeMethods.
RSpec/EmptyExampleGroup
:
Enabled
:
true
CustomIncludeMethods
:
-
run_permission_checks
# Checks for long example.
# Checks for long example.
RSpec/ExampleLength
:
RSpec/ExampleLength
:
Enabled
:
false
Enabled
:
false
...
...
.rubocop_todo.yml
View file @
36ede008
...
@@ -10,11 +10,6 @@
...
@@ -10,11 +10,6 @@
RSpec/BeforeAfterAll
:
RSpec/BeforeAfterAll
:
Enabled
:
false
Enabled
:
false
# Offense count: 15
# Configuration parameters: CustomIncludeMethods.
RSpec/EmptyExampleGroup
:
Enabled
:
false
# Offense count: 233
# Offense count: 233
RSpec/EmptyLineAfterFinalLet
:
RSpec/EmptyLineAfterFinalLet
:
Enabled
:
false
Enabled
:
false
...
...
spec/features/issues_spec.rb
View file @
36ede008
...
@@ -30,13 +30,6 @@ describe 'Issues', feature: true do
...
@@ -30,13 +30,6 @@ describe 'Issues', feature: true do
it
'opens new issue popup'
do
it
'opens new issue popup'
do
expect
(
page
).
to
have_content
(
"Issue #
#{
issue
.
iid
}
"
)
expect
(
page
).
to
have_content
(
"Issue #
#{
issue
.
iid
}
"
)
end
end
describe
'fill in'
do
before
do
fill_in
'issue_title'
,
with:
'bug 345'
fill_in
'issue_description'
,
with:
'bug description'
end
end
end
end
describe
'Editing issue assignee'
do
describe
'Editing issue assignee'
do
...
@@ -557,15 +550,6 @@ describe 'Issues', feature: true do
...
@@ -557,15 +550,6 @@ describe 'Issues', feature: true do
expect
(
page
).
to
have_content
milestone
.
title
expect
(
page
).
to
have_content
milestone
.
title
end
end
end
end
describe
'removing assignee'
do
let
(
:user2
)
{
create
(
:user
)
}
before
do
issue
.
assignees
<<
user2
issue
.
save
end
end
end
end
describe
'new issue'
do
describe
'new issue'
do
...
...
spec/models/project_snippet_spec.rb
View file @
36ede008
...
@@ -5,9 +5,6 @@ describe ProjectSnippet, models: true do
...
@@ -5,9 +5,6 @@ describe ProjectSnippet, models: true do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
end
end
describe
"Mass assignment"
do
end
describe
"Validation"
do
describe
"Validation"
do
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
end
end
...
...
spec/models/protected_branch_spec.rb
View file @
36ede008
...
@@ -7,9 +7,6 @@ describe ProtectedBranch, models: true do
...
@@ -7,9 +7,6 @@ describe ProtectedBranch, models: true do
it
{
is_expected
.
to
belong_to
(
:project
)
}
it
{
is_expected
.
to
belong_to
(
:project
)
}
end
end
describe
"Mass assignment"
do
end
describe
'Validation'
do
describe
'Validation'
do
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
it
{
is_expected
.
to
validate_presence_of
(
:project
)
}
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
it
{
is_expected
.
to
validate_presence_of
(
:name
)
}
...
...
spec/routing/routing_spec.rb
View file @
36ede008
...
@@ -249,17 +249,34 @@ describe RootController, 'routing' do
...
@@ -249,17 +249,34 @@ describe RootController, 'routing' do
end
end
end
end
# new_user_session GET /users/sign_in(.:format) devise/sessions#new
# user_session POST /users/sign_in(.:format) devise/sessions#create
# destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
# user_omniauth_authorize /users/auth/:provider(.:format) omniauth_callbacks#passthru
# user_omniauth_callback /users/auth/:action/callback(.:format) omniauth_callbacks#(?-mix:(?!))
# user_password POST /users/password(.:format) devise/passwords#create
# new_user_password GET /users/password/new(.:format) devise/passwords#new
# edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
# PUT /users/password(.:format) devise/passwords#update
describe
"Authentication"
,
"routing"
do
describe
"Authentication"
,
"routing"
do
# pending
it
"GET /users/sign_in"
do
expect
(
get
(
"/users/sign_in"
)).
to
route_to
(
'sessions#new'
)
end
it
"POST /users/sign_in"
do
expect
(
post
(
"/users/sign_in"
)).
to
route_to
(
'sessions#create'
)
end
it
"DELETE /users/sign_out"
do
expect
(
delete
(
"/users/sign_out"
)).
to
route_to
(
'sessions#destroy'
)
end
it
"POST /users/password"
do
expect
(
post
(
"/users/password"
)).
to
route_to
(
'passwords#create'
)
end
it
"GET /users/password/new"
do
expect
(
get
(
"/users/password/new"
)).
to
route_to
(
'passwords#new'
)
end
it
"GET /users/password/edit"
do
expect
(
get
(
"/users/password/edit"
)).
to
route_to
(
'passwords#edit'
)
end
it
"PUT /users/password"
do
expect
(
put
(
"/users/password"
)).
to
route_to
(
'passwords#update'
)
end
end
end
describe
"Groups"
,
"routing"
do
describe
"Groups"
,
"routing"
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