Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Fixes issue #353.
  • Loading branch information...
commit 51c30d22efdac3466128e640f68335c0c018252b 1 parent 0871afc
joshcooper authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/rspec/core/configuration_options.rb
View
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.