Permalink
Browse files

Ensure that values passed to `config.filter_run` are respected when

running over DRb (using spork).

- Fixes #554.
  • Loading branch information...
1 parent bf848ec commit 80a2e3818f6535309999003bb3dd958c56fdd7b9 @dchelimsky dchelimsky committed Jan 16, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −1 lib/rspec/core/configuration_options.rb
  2. +7 −0 spec/rspec/core/configuration_options_spec.rb
@@ -33,7 +33,7 @@ def drb_argv
end
def filter_manager
- @filter_manager ||= FilterManager.new
+ @filter_manager ||= RSpec::configuration.filter_manager
end
private
@@ -301,6 +301,13 @@
end
end
+ describe "#filter_manager" do
+ it "returns the same object as RSpec::configuration.filter_manager" do
+ config_options_object.filter_manager.
+ should be(RSpec::configuration.filter_manager)
+ end
+ end
+
describe "sources: ~/.rspec, ./.rspec, custom, CLI, and SPEC_OPTS" do
before(:each) do
FileUtils.mkpath(File.expand_path("~"))

0 comments on commit 80a2e38

Please sign in to comment.