summaryrefslogtreecommitdiffstats
path: root/spec/tokenizer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/tokenizer_spec.rb')
-rw-r--r--spec/tokenizer_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/tokenizer_spec.rb b/spec/tokenizer_spec.rb
index fc7a3ac..0a7c3f9 100644
--- a/spec/tokenizer_spec.rb
+++ b/spec/tokenizer_spec.rb
@@ -43,14 +43,15 @@ describe "Tokenizer" do
it "supports unescaping with &" do
result = tokenize("{{&bar}}")
- result.should match_tokens(%w(OPEN_UNESCAPED ID CLOSE))
+ result.should match_tokens(%w(OPEN ID CLOSE))
+ result[0].should be_token("OPEN", "{{&")
result[1].should be_token("ID", "bar")
end
it "supports unescaping with {{{" do
result = tokenize("{{{bar}}}")
- result.should match_tokens(%w(OPEN_UNESCAPED ID CLOSE))
+ result.should match_tokens(%w(OPEN_UNESCAPED ID CLOSE_UNESCAPED))
result[1].should be_token("ID", "bar")
end