Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

missed tests

  • Loading branch information...
commit ced1340eca09dfc0ace36ce95dced7c5bd0d43c4 1 parent a7d6acd
@AlexKVal AlexKVal authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/rspec/core/configuration_spec.rb
View
12 spec/rspec/core/configuration_spec.rb
@@ -692,6 +692,12 @@ def metadata_hash(*args)
config.inclusion_filter = :foo
config.inclusion_filter.should eq({:foo => true})
end
+
+ it "overrides any inclusion filters set on the command line or in configuration files" do
+ config.force(:inclusion_filter => { :foo => :bar })
+ config.inclusion_filter = {:want => :this}
+ config.inclusion_filter.should eq({:want => :this})
+ end
end
describe "#exclusion_filter" do
@@ -739,6 +745,12 @@ def metadata_hash(*args)
config.exclusion_filter = :foo
config.exclusion_filter.should eq({:foo => true})
end
+
+ it "overrides any exclusion filters set on the command line or in configuration files" do
+ config.force(:exclusion_filter => { :foo => :bar })
+ config.exclusion_filter = {:want => :this}
+ config.exclusion_filter.should eq({:want => :this})
+ end
end
describe "line_numbers=" do
Please sign in to comment.
Something went wrong with that request. Please try again.