Fix have_issuable_counts matcher on failure

This commit is contained in:
Sean McGivern 2016-11-28 16:48:10 +00:00
parent e1e372bab0
commit a610e0dcfc

View file

@ -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
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)