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
86675194
Commit
86675194
authored
Jun 02, 2016
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing todo tests
parent
f0ca487c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/features/todos/todos_spec.rb
spec/features/todos/todos_spec.rb
+2
-2
No files found.
spec/features/todos/todos_spec.rb
View file @
86675194
...
...
@@ -49,7 +49,7 @@ describe 'Dashboard Todos', feature: true do
note1
=
create
(
:note_on_issue
,
note:
"Hello
#{
label1
.
to_reference
(
format: :name
)
}
"
,
noteable_id:
issue
.
id
,
noteable_type:
'Issue'
,
project:
issue
.
project
)
create
(
:todo
,
:mentioned
,
project:
project
,
target:
issue
,
user:
user
,
note_id:
note1
.
id
)
project2
=
create
(
:project
)
project2
=
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
label2
=
create
(
:label
,
project:
project2
)
issue2
=
create
(
:issue
,
project:
project2
)
note2
=
create
(
:note_on_issue
,
note:
"Test
#{
label2
.
to_reference
(
format: :name
)
}
"
,
noteable_id:
issue2
.
id
,
noteable_type:
'Issue'
,
project:
project2
)
...
...
@@ -101,7 +101,7 @@ describe 'Dashboard Todos', feature: true do
context
'User has a Todo in a project pending deletion'
do
before
do
deleted_project
=
create
(
:project
,
pending_delete:
true
)
deleted_project
=
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
,
pending_delete:
true
)
create
(
:todo
,
:mentioned
,
user:
user
,
project:
deleted_project
,
target:
issue
,
author:
author
)
login_as
(
user
)
visit
dashboard_todos_path
...
...
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