test/test_shell.rb in rib-1.2.7 vs test/test_shell.rb in rib-1.2.8
- old
+ new
@@ -47,20 +47,20 @@
mock(shell).puts('=> "mm"'){}
input('"m" * 2')
end
would 'error in print_result' do
- mock(Rib).warn(match(/Error while printing result.*BOOM/m)){}
+ mock(Rib).warn(matching(/Error while printing result.*BOOM/m)){}
input('obj = Object.new; def obj.inspect; raise "BOOM"; end; obj')
end
would 'not crash if user input is a blackhole' do
- mock(Rib).warn(match(/Error while printing result/)){}
+ mock(Rib).warn(matching(/Error while printing result/)){}
input('Rib::Blackhole')
end
would 'print error from eval' do
- mock(shell).puts(match(/RuntimeError/)){}
+ mock(shell).puts(matching(/RuntimeError/)){}
input('raise "blah"')
end
end
describe '#prompt' do