spec/runner_spec.rb in mislav-rspactor-0.3.3 vs spec/runner_spec.rb in mislav-rspactor-0.4.0

- old
+ new

@@ -94,11 +94,12 @@ RSpactor::Inspector.stub!(:new).and_return(@inspector) @listener = mock('Listener') end it "should run Listener" do - @listener.should_receive(:run).with('/my/path') - RSpactor::Listener.should_receive(:new).with(instance_of(Array)).and_return(@listener) + @listener.should_receive(:start).with('/my/path').and_return(@listener) + @listener.should_receive(:enter_run_loop).with() + RSpactor::Listener.should_receive(:new).with(:extensions => instance_of(Array)).and_return(@listener) setup end end it "should output 'watching' message on start" do \ No newline at end of file