gitlab-org--gitlab-foss/spec/helpers/issuables_helper_spec.rb
Phil Hughes d1b987fd05 Changed file name
Updated spec HAML
2016-08-19 15:36:49 +01:00

16 lines
420 B
Ruby

require 'spec_helper'
describe IssuablesHelper do
let(:label) { build_stubbed(:label) }
let(:label2) { build_stubbed(:label) }
context 'label tooltip' do
it 'returns label text' do
expect(issuable_labels_tooltip([label])).to eq(label.title)
end
it 'returns label text' do
expect(issuable_labels_tooltip([label, label2], limit: 1)).to eq("#{label.title}, and 1 more")
end
end
end