Skip to content

Commit 1e32926

Browse files
author
Leon Gersing
committed
Adds spec for classic ids, which are supported
1 parent 37f6f51 commit 1e32926

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/gist_tag_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
end
2727
end
2828

29+
context "classic Gist id style" do
30+
let(:gist) { "1234321" }
31+
32+
it "produces the correct script tag" do
33+
expect(output).to match(/<script src="https:\/\/gist.github.com\/#{gist}.js">\s<\/script>/)
34+
end
35+
end
36+
2937
context "with file specified" do
3038
let(:gist) { "mattr-/24081a1d93d2898ecf0f" }
3139
let(:filename) { "myfile.ext" }

0 commit comments

Comments
 (0)