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
Boxiang Sun
gitlab-ce
Commits
4c5c5ab3
Commit
4c5c5ab3
authored
Sep 14, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for due date
parent
babaaca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/features/todos/todos_spec.rb
spec/features/todos/todos_spec.rb
+7
-1
No files found.
spec/features/todos/todos_spec.rb
View file @
4c5c5ab3
...
@@ -4,7 +4,7 @@ describe 'Dashboard Todos', feature: true do
...
@@ -4,7 +4,7 @@ describe 'Dashboard Todos', feature: true do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:author
)
{
create
(
:user
)
}
let
(
:author
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
}
let
(
:project
)
{
create
(
:project
,
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
}
let
(
:issue
)
{
create
(
:issue
)
}
let
(
:issue
)
{
create
(
:issue
,
due_date:
Date
.
today
)
}
describe
'GET /dashboard/todos'
do
describe
'GET /dashboard/todos'
do
context
'User does not have todos'
do
context
'User does not have todos'
do
...
@@ -28,6 +28,12 @@ describe 'Dashboard Todos', feature: true do
...
@@ -28,6 +28,12 @@ describe 'Dashboard Todos', feature: true do
expect
(
page
).
to
have_selector
(
'.todos-list .todo'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'.todos-list .todo'
,
count:
1
)
end
end
it
'shows due date as today'
do
page
.
within
first
(
'.todo'
)
do
expect
(
page
).
to
have_content
'Due today'
end
end
describe
'deleting the todo'
do
describe
'deleting the todo'
do
before
do
before
do
first
(
'.done-todo'
).
click
first
(
'.done-todo'
).
click
...
...
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