spec/spec/runner/option_parser_spec.rb in rspec-0.9.4 vs spec/spec/runner/option_parser_spec.rb in rspec-1.0.0
- old
+ new
@@ -300,9 +300,14 @@
it "should call DrbCommandLine when --drb is specified" do
Spec::Runner::DrbCommandLine.should_receive(:run).with(["some/spec.rb", "--diff", "--colour"], @err, @out, true, true)
options = parse(["some/spec.rb", "--diff", "--drb", "--colour"])
end
+ it "should not return an Options object when --drb is specified" do
+ Spec::Runner::DrbCommandLine.stub!(:run)
+ parse(["some/spec.rb", "--drb"]).should be_nil
+ end
+
it "should reverse spec order when --reverse is specified" do
options = parse(["some/spec.rb", "--reverse"])
end
it "should set an mtime comparator when --loadby mtime" do