Skip to content

Commit

Permalink
added specs for setting the sandboxed check directory
Browse files Browse the repository at this point in the history
  • Loading branch information
auxesis committed Jun 30, 2009
1 parent 25dcda3 commit b9c50af
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/worker_options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,24 @@
options.port.should == 11300
end

it "should accept a specified checks directory in short form" do
args = %w(-c /tmp)
options = Flapjack::WorkerOptions.parse(args)
options.checks_directory.should == "/tmp"
end

it "should accept a specified checks directory in long form" do
args = %w(--checks-directory /tmp)
options = Flapjack::WorkerOptions.parse(args)
options.checks_directory.should == "/tmp"
end

it "should set a default checks directory" do
args = []
options = Flapjack::WorkerOptions.parse(args)
options.checks_directory.should_not be_nil
end

# general
it "should exit on when asked for help in short form" do
args = %w(-h)
Expand Down

0 comments on commit b9c50af

Please sign in to comment.