spec/textpow/syntax_spec.rb in textpow1x-1.2.2 vs spec/textpow/syntax_spec.rb in textpow1x-1.2.3
- old
+ new
@@ -157,10 +157,10 @@
end
end
describe "proxying" do
it "cannot proxy by scopeName if syntax is missing" do
- STDERR.should_receive(:puts)
+ STDERR.should_not_receive(:puts)
node = Textpow::SyntaxNode.new({"scopeName" => 'xxx', 'patterns' => [{'include' => 'foo'}]})
node.parse('bar').stack.should == [
[:start_parsing, "xxx"],
[:new_line, "bar"],
[:end_parsing, "xxx"]