Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-04-19 21:43:06 +0300
committerClement Ho <ClemMakesApps@gmail.com>2018-04-19 21:43:06 +0300
commitcefeeaea3364c52afc8077c6eaa8914a4bb27852 (patch)
tree03c1100e2636510f89982b4a3473e868a3745eab /spec/helpers/issuables_helper_spec.rb
parent59d6161e1ea5f4650fe45a0f6bd2e45bb061f6e1 (diff)
parentb1e9d98a29605daf7ccdd0e324dd399fdebfee41 (diff)
Merge branch 'master' into bootstrap4
Diffstat (limited to 'spec/helpers/issuables_helper_spec.rb')
-rw-r--r--spec/helpers/issuables_helper_spec.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb
index a486ea7a62a..cddb49b320f 100644
--- a/spec/helpers/issuables_helper_spec.rb
+++ b/spec/helpers/issuables_helper_spec.rb
@@ -22,11 +22,15 @@ describe IssuablesHelper do
end
describe '#issuable_labels_tooltip' do
- it 'returns label text' do
+ it 'returns label text with no labels' do
+ expect(issuable_labels_tooltip([])).to eq("Labels")
+ end
+
+ it 'returns label text with labels within max limit' do
expect(issuable_labels_tooltip([label])).to eq(label.title)
end
- it 'returns label text' do
+ it 'returns label text with labels exceeding max limit' do
expect(issuable_labels_tooltip([label, label2], limit: 1)).to eq("#{label.title}, and 1 more")
end
end