spec/cukeq/scenario_runner_spec.rb in cukeq-0.0.1.dev vs spec/cukeq/scenario_runner_spec.rb in cukeq-0.0.1.dev2
- old
+ new
@@ -15,10 +15,12 @@
end
it "creates a configured and updated Scm instance" do
job = {'scm' => {'url' => 'git://example.com/foo/bar', 'revision' => 'some-revision'}}
- CukeQ::Scm.should_receive(:new).with(job['scm']['url']).and_return(mock_scm = mock("scm"))
+ CukeQ::Scm.should_receive(:new).with(CukeQ.root, job['scm']['url']).
+ and_return(mock_scm = mock("scm"))
+
mock_scm.should_receive(:current_revision).and_return 'another-revision'
mock_scm.should_receive(:update).and_yield
runner.scm_for(job).should == mock_scm
end
\ No newline at end of file