fix rubocop warning

This commit is contained in:
James Lopez 2016-04-20 11:25:33 +02:00
parent af18cddddf
commit c0948396d1

View file

@ -220,13 +220,13 @@ describe Issue, "Issuable" do
it 'finds issue with 1 label' do it 'finds issue with 1 label' do
setup_labels([example_label]) 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 end
it 'finds issue with 2 labels' do it 'finds issue with 2 labels' do
setup_labels(example_labels) 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 end
def setup_labels(label_names) def setup_labels(label_names)