test/agent_test.rb in bond-0.2.2 vs test/agent_test.rb in bond-0.3.0
- old
+ new
@@ -59,11 +59,11 @@
Bond.config[:debug] = true
end
it 'for completion action failing with Rc.eval and debug completes error' do
complete(:on=>/blah/) { Rc.eval('{[}') || [] }
- tab('blah').should complete_error(/Bond Error: Failed.*action.*(eval)/)
+ tab('blah').should complete_error(/Bond Error: Failed.*action.*(syntax|expect)/m)
end
it "for completion action raising SyntaxError in eval completes error" do
complete(:on=>/blah/) { eval '{[}'}
tab('blah').should complete_error(/Bond Error: Failed.*action.*(eval)/)
@@ -229,6 +229,6 @@
it "detects no mission" do
capture_stdout { Bond.spy('blah')}.should =~ /Doesn't match/
end
end
-end
\ No newline at end of file
+end