Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-11-28 19:48:10 +0300
committerSean McGivern <sean@gitlab.com>2016-12-01 15:24:56 +0300
commita610e0dcfc178ad31bcf2392e0d103e2c4ef8407 (patch)
tree7d5c193aa5b67166f4e0b3b2380cc2530fa91873 /spec/support/matchers
parente1e372bab0590291d97cf35690439426a8e89e90 (diff)
Fix have_issuable_counts matcher on failure
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/have_issuable_counts.rb8
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)