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
Léo-Paul Géneau
gitlab-ce
Commits
1633d3d7
Commit
1633d3d7
authored
Jun 07, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change tests based on backend feedback
parent
973e8c0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
spec/services/boards/lists/list_service_spec.rb
spec/services/boards/lists/list_service_spec.rb
+4
-10
No files found.
spec/services/boards/lists/list_service_spec.rb
View file @
1633d3d7
...
@@ -9,26 +9,20 @@ describe Boards::Lists::ListService, services: true do
...
@@ -9,26 +9,20 @@ describe Boards::Lists::ListService, services: true do
describe
'#execute'
do
describe
'#execute'
do
context
'when the board has a backlog list'
do
context
'when the board has a backlog list'
do
before
do
let!
(
:backlog_list
)
{
create
(
:backlog_list
,
board:
board
)
}
create
(
:backlog_list
,
board:
board
)
end
it
'does not create a backlog list'
do
it
'does not create a backlog list'
do
service
.
execute
(
board
)
expect
{
service
.
execute
(
board
)
}.
not_to
change
(
board
.
lists
,
:count
)
expect
(
board
.
lists
.
merge
(
List
.
backlog
)).
to
eq
[
board
.
backlog_list
]
end
end
it
"returns board's lists"
do
it
"returns board's lists"
do
expect
(
service
.
execute
(
board
)).
to
eq
[
b
oard
.
b
acklog_list
,
list
,
board
.
closed_list
]
expect
(
service
.
execute
(
board
)).
to
eq
[
backlog_list
,
list
,
board
.
closed_list
]
end
end
end
end
context
'when the board does not have a backlog list'
do
context
'when the board does not have a backlog list'
do
it
'creates a backlog list'
do
it
'creates a backlog list'
do
service
.
execute
(
board
)
expect
{
service
.
execute
(
board
)
}.
to
change
(
board
.
lists
,
:count
).
by
(
1
)
expect
(
board
.
backlog_list
).
not_to
be
nil
end
end
it
"returns board's lists"
do
it
"returns board's lists"
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