Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Pass --autotest over drb to get color to work w/ autotest+spork.

- Closes #184.
  • Loading branch information...
commit 6e9cba6bd5a97944a25ea8f5a0127e55843ea0f3 1 parent 4039e73
@dchelimsky dchelimsky authored
View
1  lib/rspec/core/configuration_options.rb
@@ -28,6 +28,7 @@ def drb_argv
argv << "--color" if options[:color_enabled]
argv << "--profile" if options[:profile_examples]
argv << "--backtrace" if options[:full_backtrace]
+ argv << "--autotest" if options[:autotest]
argv << "--format" << options[:formatter] if options[:formatter]
argv << "--line_number" << options[:line_number] if options[:line_number]
argv << "--example" << options[:full_description].source if options[:full_description]
View
4 spec/rspec/core/configuration_options_spec.rb
@@ -191,8 +191,8 @@ def options_from_args(*args)
it "renders all the original arguments except --drb" do
File.stub(:exist?) { true }
IO.stub(:read) { "--drb --color" }
- config_options_object(*%w[ --format s --line_number 1 --example pattern --profile --backtrace ]).
- drb_argv.should eq(%w[ --color --profile --backtrace --format s --line_number 1 --example pattern ])
+ config_options_object(*%w[ --autotest --format s --line_number 1 --example pattern --profile --backtrace ]).
+ drb_argv.should eq(%w[ --color --profile --backtrace --autotest --format s --line_number 1 --example pattern ])
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.