test/test_runner.rb in rib-1.2.5 vs test/test_runner.rb in rib-1.2.6

- old
+ new

@@ -1,11 +1,11 @@ require 'rib/test' require 'rib/runner' describe Rib::Runner do - behaves_like :rib + paste :rib before do Rib.disable_plugins @shell = Rib::Shell.new mock(Rib).shell{ @shell }.times(2) @@ -19,17 +19,17 @@ def output *args args.each{ |item| mock(@shell).puts("=> #{item}"){} } mock(@shell).puts{} end - should '-e' do + would '-e' do input('a') output('1') Rib::Runner.run(%w[-ea=1]).should.eq @shell end - should '-e nothing' do + would '-e nothing' do input output Rib::Runner.run(%w[-e]).should.eq @shell end @@ -42,13 +42,13 @@ mock(Rib::Runner).load(min){ Rib::Runner.run(argv) } stub(Rib).config{ conf } Rib::Runner.run(argv).should.eq @shell end - should 'min -e' do + would 'min -e' do verify_app_e(%w[min -ea=1]) end - should '-e min' do + would '-e min' do verify_app_e(%w[-ea=1 min]) end end