Skip to content

Commit

Permalink
Properly merge command-line exclusions with default :if and :unless.
Browse files Browse the repository at this point in the history
Fixes issue #353.
  • Loading branch information
joshcooper committed May 19, 2011
1 parent 0871afc commit 51c30d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rspec/core/configuration_options.rb
Expand Up @@ -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
Expand Down

0 comments on commit 51c30d2

Please sign in to comment.