Sha256: f5eedbb42beeb9f3683c15ee4197bef746715155f6ae7e79dd3a39991bcdcd4b
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
describe "BinRunner" do describe "at commandline" do def start(*args) Hirb.stubs(:enable) BinRunner.start(args) end before {|e| BinRunner.instance_variables.each {|e| BinRunner.instance_variable_set(e, nil)} } before_all { reset } it "invalid option value prints error" do aborts_with(/Error: no value/) { start("-l") } end it "load option loads libraries" do Manager.expects(:load).with {|*args| args[0][0].is_a?(Module) ? true : args[0][0] == 'blah'}.times(2) BinRunner.stubs(:execute_command) start('-l', 'blah', 'libraries') end it "with backtrace option prints backtrace" do BinRunner.expects(:autoload_command).returns(false) aborts_with(/not found\nOriginal.*runner\.rb:/m) { start("--backtrace", "blah") } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boson-more-0.2.1 | test/runner_options_test.rb |
boson-more-0.2.0 | test/runner_options_test.rb |
boson-more-0.1.0 | test/runner_options_test.rb |