diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-18 15:59:09 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-19 17:27:18 +0300 |
commit | bcf304b04ac4bd7e7863421f84a388ab4039b80f (patch) | |
tree | 1cd4459c6af388f10d0c5246e8e32ffc89ea3c6c /spec/helpers | |
parent | 87284321ffc23fde2be175cb9ba01a5aa37071a6 (diff) |
Changed tests to use JS tests
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issuable_helper_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/helpers/issuable_helper_spec.rb b/spec/helpers/issuable_helper_spec.rb new file mode 100644 index 00000000000..2dd2eab0524 --- /dev/null +++ b/spec/helpers/issuable_helper_spec.rb @@ -0,0 +1,16 @@ +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 |