diff options
author | James Lopez <james@jameslopez.es> | 2016-04-20 11:25:33 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-04-20 11:25:33 +0200 |
commit | c0948396d1fd8bf4cbd187f33583b2f6db5d2178 (patch) | |
tree | eec51ebcc27f1239ee8d1eea90fa681c1d77d467 | |
parent | af18cddddf4ecb402ac613ddcc1f313f6adb7aad (diff) | |
download | gitlab-ce-c0948396d1fd8bf4cbd187f33583b2f6db5d2178.tar.gz |
fix rubocop warning
-rw-r--r-- | spec/models/concerns/issuable_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/issuable_spec.rb b/spec/models/concerns/issuable_spec.rb index dc7a9a10893..6b61bbb2fab 100644 --- a/spec/models/concerns/issuable_spec.rb +++ b/spec/models/concerns/issuable_spec.rb @@ -220,13 +220,13 @@ describe Issue, "Issuable" do it 'finds issue with 1 label' do setup_labels([example_label]) - expect(Issue.with_label(example_label).count).to eq(1) + expect(Issue.with_label(example_label).size).to eq(1) end it 'finds issue with 2 labels' do setup_labels(example_labels) - expect(Issue.with_label(example_labels).to_a.count).to eq(1) + expect(Issue.with_label(example_labels).to_a.size).to eq(1) end def setup_labels(label_names) |