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
cc3e403f
Commit
cc3e403f
authored
Feb 04, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge conflicts in Boards::CreateService and specs
parent
ee1270df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
app/services/boards/create_service.rb
app/services/boards/create_service.rb
+0
-9
spec/services/boards/create_service_spec.rb
spec/services/boards/create_service_spec.rb
+2
-7
No files found.
app/services/boards/create_service.rb
View file @
cc3e403f
...
...
@@ -3,18 +3,9 @@ module Boards
def
execute
board
=
project
.
boards
.
create
(
params
)
<<<<<<<
HEAD
if
board
.
persisted?
board
.
lists
.
create
(
list_type: :backlog
)
board
.
lists
.
create
(
list_type: :done
)
end
=======
private
def
create_board!
board
=
project
.
boards
.
create
board
.
lists
.
create
(
list_type: :done
)
>>>>>>>
ce
/
master
board
end
...
...
spec/services/boards/create_service_spec.rb
View file @
cc3e403f
...
...
@@ -11,11 +11,7 @@ describe Boards::CreateService, services: true do
expect
{
service
.
execute
}.
to
change
(
project
.
boards
,
:count
).
by
(
1
)
end
<<<<<<<
HEAD
it
"creates board's default lists"
do
=======
it
'creates the default lists'
do
>>>>>>>
ce
/
master
board
=
service
.
execute
expect
(
board
.
lists
.
size
).
to
eq
1
...
...
@@ -47,9 +43,8 @@ describe Boards::CreateService, services: true do
it
"creates board's default lists"
do
board
=
service
.
execute
expect
(
board
.
lists
.
size
).
to
eq
2
expect
(
board
.
lists
.
first
).
to
be_backlog
expect
(
board
.
lists
.
last
).
to
be_done
expect
(
board
.
lists
.
size
).
to
eq
1
expect
(
board
.
lists
.
first
).
to
be_done
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