Permalink
Browse files

Properly merge command-line exclusions with default :if and :unless.

Fixes issue #353.
  • Loading branch information...
joshcooper
joshcooper committed May 19, 2011
1 parent 0871afc commit 51c30d22efdac3466128e640f68335c0c018252b
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/rspec/core/configuration_options.rb
@@ -16,6 +16,7 @@ def configure(config)
keys.unshift(:requires) if keys.delete(:requires)
keys.unshift(:libs) if keys.delete(:libs)
formatters = options[:formatters] if keys.delete(:formatters)
+ config.exclusion_filter.merge! options[:exclusion_filter] if keys.delete(:exclusion_filter)
keys.each do |key|
config.send("#{key}=", options[key]) if config.respond_to?("#{key}=")
end

0 comments on commit 51c30d2

Please sign in to comment.