spec/cukeq/slave_spec.rb in cukeq-0.0.1.dev vs spec/cukeq/slave_spec.rb in cukeq-0.0.1.dev2
- old
+ new
@@ -34,9 +34,19 @@
slave.broker.port.should == 9000
slave.broker.user.should == 'cukeq-slave'
slave.broker.pass.should == 'cukeq123'
slave.broker.vhost.should == '/cukeq'
end
+
+ it "uses the given repo directory" do
+ CukeQ::ScenarioRunner.should_receive(:new).with("/tmp/foo")
+ CukeQ::Slave.configured_instance(%w[--repos /tmp/foo])
+ end
+
+ it "uses the default repo directory" do
+ slave = CukeQ::Slave.configured_instance
+ slave.scenario_runner.repos.should == CukeQ.root
+ end
end
describe ".execute" do
it "starts the configured instance" do
args = %w[some args]
\ No newline at end of file