summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-12-01 16:14:26 +0000
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-12-02 13:33:37 -0300
commit74a750d38e18ae85fd3830d0c41c540fdbc318cd (patch)
tree3d53e356f647fbc949f150ea8b652ce854e02f02 /spec
parentc16a5701e90d43216c57bfea6b174f163662d0cf (diff)
downloadgitlab-ce-74a750d38e18ae85fd3830d0c41c540fdbc318cd.tar.gz
Merge branch '24669-merge-request-dashboard-page-takes-over-a-minute-to-load' into 'master'
Resolve "Merge request dashboard page takes over a minute to load" See merge request !7760
Diffstat (limited to 'spec')
-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)