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
Tatuya Kamada
gitlab-ce
Commits
a610e0dc
Commit
a610e0dc
authored
Nov 28, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix have_issuable_counts matcher on failure
parent
e1e372ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/support/matchers/have_issuable_counts.rb
spec/support/matchers/have_issuable_counts.rb
+4
-4
No files found.
spec/support/matchers/have_issuable_counts.rb
View file @
a610e0dc
RSpec
::
Matchers
.
define
:have_issuable_counts
do
|
opts
|
RSpec
::
Matchers
.
define
:have_issuable_counts
do
|
opts
|
match
do
|
actual
|
expected_counts
=
opts
.
map
do
|
state
,
count
|
expected_counts
=
opts
.
map
do
|
state
,
count
|
"
#{
state
.
to_s
.
humanize
}
#{
count
}
"
"
#{
state
.
to_s
.
humanize
}
#{
count
}
"
end
end
match
do
|
actual
|
actual
.
within
'.issues-state-filters'
do
actual
.
within
'.issues-state-filters'
do
expected_counts
.
each
do
|
expected_count
|
expected_counts
.
each
do
|
expected_count
|
expect
(
actual
).
to
have_content
(
expected_count
)
expect
(
actual
).
to
have_content
(
expected_count
)
...
...
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