spec/liquidscript/scanner/lexer_spec.rb in liquidscript-0.6.1 vs spec/liquidscript/scanner/lexer_spec.rb in liquidscript-0.6.2
- old
+ new
@@ -71,7 +71,12 @@
[:heredoc_ref, "TEST"],
[:identifier, "world"],
[:heredoc, "in heredoc"]
]
end
+
+ describe "scanning directives" do
+ subject { c = described_class.new("#! test thing\n"); c.scan; c }
+ its(:metadata) { should eq :directives => [{:command => "test", :args => "thing"}] }
+ end
end
end