Commit a610e0dc authored by Sean McGivern's avatar Sean McGivern

Fix have_issuable_counts matcher on failure

parent e1e372ba
RSpec::Matchers.define :have_issuable_counts do |opts|
match do |actual|
expected_counts = opts.map do |state, count|
"#{state.to_s.humanize} #{count}"
end
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment