Skip to content

Commit

Permalink
Merge pull request #380 from joshcooper/patch-1
Browse files Browse the repository at this point in the history
Properly merge command-line exclusions with default :if and :unless.
  • Loading branch information
justinko committed May 20, 2011
2 parents 0871afc + 51c30d2 commit 69c11b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rspec/core/configuration_options.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def configure(config)
keys.unshift(:requires) if keys.delete(:requires) keys.unshift(:requires) if keys.delete(:requires)
keys.unshift(:libs) if keys.delete(:libs) keys.unshift(:libs) if keys.delete(:libs)
formatters = options[:formatters] if keys.delete(:formatters) formatters = options[:formatters] if keys.delete(:formatters)
config.exclusion_filter.merge! options[:exclusion_filter] if keys.delete(:exclusion_filter)
keys.each do |key| keys.each do |key|
config.send("#{key}=", options[key]) if config.respond_to?("#{key}=") config.send("#{key}=", options[key]) if config.respond_to?("#{key}=")
end end
Expand Down

0 comments on commit 69c11b1

Please sign in to comment.