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
13dbfa90
Commit
13dbfa90
authored
Nov 02, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix transient error with boards_controller_spec
parent
3cdf7c7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
spec/controllers/groups/boards_controller_spec.rb
spec/controllers/groups/boards_controller_spec.rb
+4
-3
spec/controllers/projects/boards_controller_spec.rb
spec/controllers/projects/boards_controller_spec.rb
+3
-2
No files found.
spec/controllers/groups/boards_controller_spec.rb
View file @
13dbfa90
...
@@ -32,12 +32,13 @@ describe Groups::BoardsController do
...
@@ -32,12 +32,13 @@ describe Groups::BoardsController do
end
end
it
'renders template if visited board is not found'
do
it
'renders template if visited board is not found'
do
visited
=
double
temporary_board
=
create
(
:board
,
group:
group
)
visited
=
create
(
:board_group_recent_visit
,
group:
temporary_board
.
group
,
board:
temporary_board
,
user:
user
)
temporary_board
.
delete
allow
(
visited
).
to
receive
(
:board_id
).
and_return
(
12
)
allow_any_instance_of
(
Boards
::
Visits
::
LatestService
).
to
receive
(
:execute
).
and_return
(
visited
)
allow_any_instance_of
(
Boards
::
Visits
::
LatestService
).
to
receive
(
:execute
).
and_return
(
visited
)
list_boards
format: :html
list_boards
expect
(
response
).
to
render_template
:index
expect
(
response
).
to
render_template
:index
expect
(
response
.
content_type
).
to
eq
'text/html'
expect
(
response
.
content_type
).
to
eq
'text/html'
...
...
spec/controllers/projects/boards_controller_spec.rb
View file @
13dbfa90
...
@@ -38,9 +38,10 @@ describe Projects::BoardsController do
...
@@ -38,9 +38,10 @@ describe Projects::BoardsController do
end
end
it
'renders template if visited board is not found'
do
it
'renders template if visited board is not found'
do
visited
=
double
temporary_board
=
create
(
:board
,
project:
project
)
visited
=
create
(
:board_project_recent_visit
,
project:
temporary_board
.
project
,
board:
temporary_board
,
user:
user
)
temporary_board
.
delete
allow
(
visited
).
to
receive
(
:board_id
).
and_return
(
12
)
allow_any_instance_of
(
Boards
::
Visits
::
LatestService
).
to
receive
(
:execute
).
and_return
(
visited
)
allow_any_instance_of
(
Boards
::
Visits
::
LatestService
).
to
receive
(
:execute
).
and_return
(
visited
)
list_boards
list_boards
...
...
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