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
7f302685
Commit
7f302685
authored
Feb 20, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update feature spec
parent
42cbcb23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
todos.rb
features/steps/dashboard/todos.rb
+10
-10
No files found.
features/steps/dashboard/todos.rb
View file @
7f302685
...
...
@@ -26,13 +26,13 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
step
'I should see todos assigned to me'
do
expect
(
page
).
to
have_content
'To
dos
4'
expect
(
page
).
to
have_content
'To
do
4'
expect
(
page
).
to
have_content
'Done 0'
expect
(
page
).
to
have_link
project
.
name_with_namespace
should_see_todo
(
1
,
"John Doe assigned
merge request #
#{
merge_request
.
iid
}
"
,
merge_request
.
title
)
should_see_todo
(
1
,
"John Doe assigned
you merge request !
#{
merge_request
.
iid
}
"
,
merge_request
.
title
)
should_see_todo
(
2
,
"John Doe mentioned you on issue #
#{
issue
.
iid
}
"
,
"
#{
current_user
.
to_reference
}
Wdyt?"
)
should_see_todo
(
3
,
"John Doe assigned issue #
#{
issue
.
iid
}
"
,
issue
.
title
)
should_see_todo
(
3
,
"John Doe assigned
you
issue #
#{
issue
.
iid
}
"
,
issue
.
title
)
should_see_todo
(
4
,
"Mary Jane mentioned you on issue #
#{
issue
.
iid
}
"
,
issue
.
title
)
end
...
...
@@ -42,9 +42,9 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
expect
(
page
).
to
have_content
'Todo was successfully marked as done.'
expect
(
page
).
to
have_content
'To
dos
3'
expect
(
page
).
to
have_content
'To
do
3'
expect
(
page
).
to
have_content
'Done 1'
should_not_see_todo
"John Doe assigned
merge request #
#{
merge_request
.
iid
}
"
should_not_see_todo
"John Doe assigned
you merge request !
#{
merge_request
.
iid
}
"
end
step
'I click on the "Done" tab'
do
...
...
@@ -53,7 +53,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
step
'I should see all todos marked as done'
do
expect
(
page
).
to
have_link
project
.
name_with_namespace
should_see_todo
(
1
,
"John Doe assigned
merge request #
#{
merge_request
.
iid
}
"
,
merge_request
.
title
,
false
)
should_see_todo
(
1
,
"John Doe assigned
you merge request !
#{
merge_request
.
iid
}
"
,
merge_request
.
title
,
false
)
end
step
'I filter by "Enterprise"'
do
...
...
@@ -73,7 +73,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
step
'I should not see todos'
do
expect
(
page
).
to
have_content
'No todos to show'
expect
(
page
).
to
have_content
"You're all done!"
end
step
'I should not see todos related to "Mary Jane" in the list'
do
...
...
@@ -81,12 +81,12 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
step
'I should not see todos related to "Merge Requests" in the list'
do
should_not_see_todo
"John Doe assigned
merge request #
#{
merge_request
.
iid
}
"
should_not_see_todo
"John Doe assigned
you merge request !
#{
merge_request
.
iid
}
"
end
step
'I should not see todos related to "Assignments" in the list'
do
should_not_see_todo
"John Doe assigned
merge request #
#{
merge_request
.
iid
}
"
should_not_see_todo
"John Doe assigned issue #
#{
issue
.
iid
}
"
should_not_see_todo
"John Doe assigned
you merge request !
#{
merge_request
.
iid
}
"
should_not_see_todo
"John Doe assigned
you
issue #
#{
issue
.
iid
}
"
end
def
should_see_todo
(
position
,
title
,
body
,
pending
=
true
)
...
...
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