Sha256: 1d3205b8c90e4203b195d50d2aac317c813416efaba9450e48c15d610b0d5184
Contents?: true
Size: 592 Bytes
Versions: 5
Compression:
Stored size: 592 Bytes
Contents
require 'spec_helper' describe Nachos do describe "execute" do it "calls start on CLI" do Nachos::CLI.expects(:start) nachos = Nachos.new nachos.stubs(:exit) nachos.execute end it "exits successfully" do Nachos::CLI.stubs(:start) nachos = Nachos.new nachos.expects(:exit).with(0) nachos.execute end it "can do help" do begin Nachos::CLI.any_instance.stubs(:shell).returns(shell = stub_everything()) Nachos.execute("help") rescue SystemExit => e end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nachos-0.0.6 | spec/nachos_spec.rb |
nachos-0.0.5 | spec/nachos_spec.rb |
nachos-0.0.4 | spec/nachos_spec.rb |
nachos-0.0.3 | spec/nachos_spec.rb |
nachos-0.0.2 | spec/nachos_spec.rb |