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
Jérome Perrin
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
features/steps/dashboard/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
...
@@ -26,13 +26,13 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
end
step
'I should see todos assigned to me'
do
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_content
'Done 0'
expect
(
page
).
to
have_link
project
.
name_with_namespace
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
(
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
)
should_see_todo
(
4
,
"Mary Jane mentioned you on issue #
#{
issue
.
iid
}
"
,
issue
.
title
)
end
end
...
@@ -42,9 +42,9 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
...
@@ -42,9 +42,9 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
end
expect
(
page
).
to
have_content
'Todo was successfully marked as done.'
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'
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
end
step
'I click on the "Done" tab'
do
step
'I click on the "Done" tab'
do
...
@@ -53,7 +53,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
...
@@ -53,7 +53,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
step
'I should see all todos marked as done'
do
step
'I should see all todos marked as done'
do
expect
(
page
).
to
have_link
project
.
name_with_namespace
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
end
step
'I filter by "Enterprise"'
do
step
'I filter by "Enterprise"'
do
...
@@ -73,7 +73,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
...
@@ -73,7 +73,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
end
step
'I should not see todos'
do
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
end
step
'I should not see todos related to "Mary Jane" in the list'
do
step
'I should not see todos related to "Mary Jane" in the list'
do
...
@@ -81,12 +81,12 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
...
@@ -81,12 +81,12 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
end
end
step
'I should not see todos related to "Merge Requests" in the list'
do
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
end
step
'I should not see todos related to "Assignments" in the list'
do
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
you merge request !
#{
merge_request
.
iid
}
"
should_not_see_todo
"John Doe assigned issue #
#{
issue
.
iid
}
"
should_not_see_todo
"John Doe assigned
you
issue #
#{
issue
.
iid
}
"
end
end
def
should_see_todo
(
position
,
title
,
body
,
pending
=
true
)
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