summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-22 13:03:39 +0000
committerRémy Coutable <remy@rymai.me>2017-02-22 13:03:39 +0000
commit7813ceddf7bb175510c9be03ec182d2514d583a2 (patch)
tree6a075fef81d93328dac6e87690161f1e9af9b304 /spec/lib
parent90eb2b92a05e7b2c24f68c9a6b9fed7d9e0945dd (diff)
parent95ed01749e0ffe55a979acb246ca8e0ae663bffb (diff)
downloadgitlab-ce-7813ceddf7bb175510c9be03ec182d2514d583a2.tar.gz
Merge branch '26087-asciidoc-cicd-badges-snippet' into 'master'
Add AsciiDoc snippet for CI/CD Badges Closes #26087 See merge request !9164
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/badge/shared/metadata.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/badge/shared/metadata.rb b/spec/lib/gitlab/badge/shared/metadata.rb
index 0cf18514251..63c7ca5a915 100644
--- a/spec/lib/gitlab/badge/shared/metadata.rb
+++ b/spec/lib/gitlab/badge/shared/metadata.rb
@@ -18,4 +18,14 @@ shared_examples 'badge metadata' do
it { is_expected.to include metadata.image_url }
it { is_expected.to include metadata.link_url }
end
+
+ describe '#to_asciidoc' do
+ subject { metadata.to_asciidoc }
+
+ it { is_expected.to include metadata.image_url }
+ it { is_expected.to include metadata.link_url }
+ it { is_expected.to include 'image:' }
+ it { is_expected.to include 'link=' }
+ it { is_expected.to include 'title=' }
+ end
end