Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.576 kb
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
Jump to Line
Something went wrong with that request. Please try again.