Fix have_issuable_counts matcher on failure
This commit is contained in:
parent
e1e372bab0
commit
a610e0dcfc
1 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
RSpec::Matchers.define :have_issuable_counts do |opts|
|
||||
match do |actual|
|
||||
expected_counts = opts.map do |state, count|
|
||||
"#{state.to_s.humanize} #{count}"
|
||||
end
|
||||
|
||||
match do |actual|
|
||||
actual.within '.issues-state-filters' do
|
||||
expected_counts.each do |expected_count|
|
||||
expect(actual).to have_content(expected_count)
|
||||
|
|
Loading…
Reference in a new issue