test/test_shell.rb in rib-1.1.2 vs test/test_shell.rb in rib-1.1.3

- old
+ new

@@ -47,9 +47,14 @@ should 'error in print_result' do mock(Rib).warn(/Error while printing result.*BOOM/m) input('obj = Object.new; def obj.inspect; raise "BOOM"; end; obj') end + should 'not crash if user input is a blackhole' do + mock(Rib).warn(/Error while printing result/) + input('Rib::Blackhole') + end + should 'print error from eval' do mock(@shell).puts(/RuntimeError/) input('raise "blah"') end end