More tests. They pass individually and fail as a whole because of leaked state, probably.
This commit is contained in:
parent
19dcb7e6a4
commit
4dc22ff2da
@ -91,7 +91,7 @@ describe "Shortcodes" do
|
|||||||
result.shortcodes[1].args.size.should eq 0
|
result.shortcodes[1].args.size.should eq 0
|
||||||
result.shortcodes[1].whole.should eq "{{<sc2 >}}"
|
result.shortcodes[1].whole.should eq "{{<sc2 >}}"
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should parse matching shortcodes" do
|
it "should parse matching shortcodes" do
|
||||||
input = "foobar {{% shortcode %}}blah {{% /shortcode %}} blah"
|
input = "foobar {{% shortcode %}}blah {{% /shortcode %}} blah"
|
||||||
result = parse(input)
|
result = parse(input)
|
||||||
@ -125,7 +125,6 @@ describe "Shortcodes" do
|
|||||||
result.shortcodes[0].whole.should eq "{{% shortcode foo \"bar\" 42 bat=v1 baz=\"v2\" %}}"
|
result.shortcodes[0].whole.should eq "{{% shortcode foo \"bar\" 42 bat=v1 baz=\"v2\" %}}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
# // BUG?
|
# // BUG?
|
||||||
# // Ensure(parse, escaped_shortcode)
|
# // Ensure(parse, escaped_shortcode)
|
||||||
# // {
|
# // {
|
||||||
|
Loading…
Reference in New Issue
Block a user