BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
84afd625
Commit
84afd625
authored
Aug 17, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove # from controller actions specs
parent
a8cc69a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
issues_controller_spec.rb
spec/controllers/projects/boards/issues_controller_spec.rb
+2
-2
lists_controller_spec.rb
spec/controllers/projects/boards/lists_controller_spec.rb
+5
-5
boards_controller_spec.rb
spec/controllers/projects/boards_controller_spec.rb
+1
-1
No files found.
spec/controllers/projects/boards/issues_controller_spec.rb
View file @
84afd625
...
...
@@ -14,7 +14,7 @@ describe Projects::Boards::IssuesController do
project
.
team
<<
[
user
,
:master
]
end
describe
'GET
#
index'
do
describe
'GET index'
do
context
'with valid list id'
do
it
'returns issues that have the list label applied'
do
johndoe
=
create
(
:user
,
avatar:
fixture_file_upload
(
File
.
join
(
Rails
.
root
,
'spec/fixtures/dk.png'
)))
...
...
@@ -59,7 +59,7 @@ describe Projects::Boards::IssuesController do
end
end
describe
'PATCH
#
update'
do
describe
'PATCH update'
do
let
(
:issue
)
{
create
(
:labeled_issue
,
project:
project
,
labels:
[
planning
])
}
context
'with valid params'
do
...
...
spec/controllers/projects/boards/lists_controller_spec.rb
View file @
84afd625
...
...
@@ -11,7 +11,7 @@ describe Projects::Boards::ListsController do
project
.
team
<<
[
guest
,
:guest
]
end
describe
'GET
#
index'
do
describe
'GET index'
do
it
'returns a successful 200 response'
do
read_board_list
user:
user
...
...
@@ -51,7 +51,7 @@ describe Projects::Boards::ListsController do
end
end
describe
'POST
#
create'
do
describe
'POST create'
do
let
(
:label
)
{
create
(
:label
,
project:
project
,
name:
'Development'
)
}
context
'with valid params'
do
...
...
@@ -99,7 +99,7 @@ describe Projects::Boards::ListsController do
end
end
describe
'PATCH
#
update'
do
describe
'PATCH update'
do
let!
(
:planning
)
{
create
(
:list
,
board:
board
,
position:
0
)
}
let!
(
:development
)
{
create
(
:list
,
board:
board
,
position:
1
)
}
...
...
@@ -152,7 +152,7 @@ describe Projects::Boards::ListsController do
end
end
describe
'DELETE
#
destroy'
do
describe
'DELETE destroy'
do
let!
(
:planning
)
{
create
(
:list
,
board:
board
,
position:
0
)
}
context
'with valid list id'
do
...
...
@@ -193,7 +193,7 @@ describe Projects::Boards::ListsController do
end
end
describe
'POST
#
generate'
do
describe
'POST generate'
do
context
'when board lists is empty'
do
it
'returns a successful 200 response'
do
generate_default_board_lists
user:
user
...
...
spec/controllers/projects/boards_controller_spec.rb
View file @
84afd625
...
...
@@ -9,7 +9,7 @@ describe Projects::BoardsController do
sign_in
(
user
)
end
describe
'GET
#
show'
do
describe
'GET show'
do
it
'creates a new board when project does not have one'
do
expect
{
read_board
}.
to
change
(
Board
,
:count
).
by
(
1
)
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