diff options
author | Sean McGivern <sean@gitlab.com> | 2016-11-28 16:48:10 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-12-01 12:24:56 +0000 |
commit | a610e0dcfc178ad31bcf2392e0d103e2c4ef8407 (patch) | |
tree | 7d5c193aa5b67166f4e0b3b2380cc2530fa91873 | |
parent | e1e372bab0590291d97cf35690439426a8e89e90 (diff) | |
download | gitlab-ce-a610e0dcfc178ad31bcf2392e0d103e2c4ef8407.tar.gz |
Fix have_issuable_counts matcher on failure24669-merge-request-dashboard-page-takes-over-a-minute-to-load
-rw-r--r-- | spec/support/matchers/have_issuable_counts.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/matchers/have_issuable_counts.rb b/spec/support/matchers/have_issuable_counts.rb index 02605d6b70e..92cf3de5448 100644 --- a/spec/support/matchers/have_issuable_counts.rb +++ b/spec/support/matchers/have_issuable_counts.rb @@ -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) |