Skip to content

Commit

Permalink
Ensure that values passed to config.filter_run are respected when
Browse files Browse the repository at this point in the history
running over DRb (using spork).

- Fixes rspec#554.
  • Loading branch information
dchelimsky committed Jan 16, 2012
1 parent bf848ec commit 80a2e38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/core/configuration_options.rb
Expand Up @@ -33,7 +33,7 @@ def drb_argv
end

def filter_manager
@filter_manager ||= FilterManager.new
@filter_manager ||= RSpec::configuration.filter_manager
end

private
Expand Down
7 changes: 7 additions & 0 deletions spec/rspec/core/configuration_options_spec.rb
Expand Up @@ -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("~"))
Expand Down

0 comments on commit 80a2e38

Please sign in to comment.