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
38cece49
Commit
38cece49
authored
Oct 05, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop offenses
parent
a88ed81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
spec/controllers/projects/boards/lists_controller_spec.rb
spec/controllers/projects/boards/lists_controller_spec.rb
+1
-1
spec/services/boards/issues/list_service_spec.rb
spec/services/boards/issues/list_service_spec.rb
+11
-11
No files found.
spec/controllers/projects/boards/lists_controller_spec.rb
View file @
38cece49
...
@@ -240,7 +240,7 @@ describe Projects::Boards::ListsController do
...
@@ -240,7 +240,7 @@ describe Projects::Boards::ListsController do
end
end
end
end
def
generate_default_lists
(
user
:,
board:
board
)
def
generate_default_lists
(
user
:,
board
:)
sign_in
(
user
)
sign_in
(
user
)
post
:generate
,
namespace_id:
project
.
namespace
.
to_param
,
post
:generate
,
namespace_id:
project
.
namespace
.
to_param
,
...
...
spec/services/boards/issues/list_service_spec.rb
View file @
38cece49
...
@@ -70,21 +70,21 @@ describe Boards::Issues::ListService, services: true do
...
@@ -70,21 +70,21 @@ describe Boards::Issues::ListService, services: true do
end
end
end
end
context
'with list that does not belongs to the board'
do
context
'with list that does not belongs to the board'
do
it
'raises an error'
do
it
'raises an error'
do
list
=
create
(
:list
)
list
=
create
(
:list
)
service
=
described_class
.
new
(
project
,
user
,
board_id:
board
.
id
,
id:
list
.
id
)
service
=
described_class
.
new
(
project
,
user
,
board_id:
board
.
id
,
id:
list
.
id
)
expect
{
service
.
execute
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
expect
{
service
.
execute
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
end
end
end
end
context
'with invalid list id'
do
context
'with invalid list id'
do
it
'raises an error'
do
it
'raises an error'
do
service
=
described_class
.
new
(
project
,
user
,
board_id:
board
.
id
,
id:
nil
)
service
=
described_class
.
new
(
project
,
user
,
board_id:
board
.
id
,
id:
nil
)
expect
{
service
.
execute
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
expect
{
service
.
execute
}.
to
raise_error
(
ActiveRecord
::
RecordNotFound
)
end
end
end
end
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