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
87f6209c
Commit
87f6209c
authored
Sep 05, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise test error messages to be more reaadble.
parent
f868badb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/features/issues/reset_filters_spec.rb
spec/features/issues/reset_filters_spec.rb
+9
-9
No files found.
spec/features/issues/reset_filters_spec.rb
View file @
87f6209c
require
'rails_helper'
require
'rails_helper'
feature
'Issues filter reset
ter
'
,
feature:
true
,
js:
true
do
feature
'Issues filter reset
button
'
,
feature:
true
,
js:
true
do
include
WaitForAjax
include
WaitForAjax
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
context
'
resets the milestone filter
'
do
context
'
when a milestone filter has been applied
'
do
it
'
shows all issues when reset
'
do
it
'
resets the milestone filter
'
do
create
(
:issue
,
project:
project
,
milestone:
milestone
)
create
(
:issue
,
project:
project
,
milestone:
milestone
)
create
(
:issue
,
project:
project
)
create
(
:issue
,
project:
project
)
...
@@ -21,8 +21,8 @@ feature 'Issues filter resetter', feature: true, js: true do
...
@@ -21,8 +21,8 @@ feature 'Issues filter resetter', feature: true, js: true do
end
end
end
end
context
'
resets labels filter
'
do
context
'
when a label filter has been applied
'
do
it
'
shows all issues when reset
'
do
it
'
resets the label filter
'
do
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
issue1
=
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
issue1
=
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
issue1
.
labels
<<
bug
issue1
.
labels
<<
bug
...
@@ -39,8 +39,8 @@ feature 'Issues filter resetter', feature: true, js: true do
...
@@ -39,8 +39,8 @@ feature 'Issues filter resetter', feature: true, js: true do
end
end
end
end
context
'
resets text filter
'
do
context
'
when a text search has been conducted
'
do
it
'
shows all issues when reset
'
do
it
'
resets the text search filter
'
do
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
create
(
:issue
,
title:
'Feature'
,
project:
project
)
create
(
:issue
,
title:
'Feature'
,
project:
project
)
...
@@ -54,8 +54,8 @@ feature 'Issues filter resetter', feature: true, js: true do
...
@@ -54,8 +54,8 @@ feature 'Issues filter resetter', feature: true, js: true do
end
end
end
end
context
'
resets label and text
dually applied'
do
context
'
when label and text filters have been
dually applied'
do
it
'
shows all issues when reset
'
do
it
'
resets both filters
'
do
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
bug
=
create
(
:label
,
project:
project
,
title:
'bug'
)
issue1
=
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
issue1
=
create
(
:issue
,
title:
'Bugfix1'
,
project:
project
)
issue1
.
labels
<<
bug
issue1
.
labels
<<
bug
...
...
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