Permalink
Browse files

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

- Closes #184.
  • Loading branch information...
1 parent 4039e73 commit 6e9cba6bd5a97944a25ea8f5a0127e55843ea0f3 @dchelimsky dchelimsky committed Oct 11, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/rspec/core/configuration_options.rb
  2. +2 −2 spec/rspec/core/configuration_options_spec.rb
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

0 comments on commit 6e9cba6

Please sign in to comment.