Permalink
Browse files

little more test coverage for FilterManager#include

  • Loading branch information...
1 parent 355f727 commit ae95c6a15a3184e22e6b84c3fa0b216db859249f Sasha committed Dec 1, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/rspec/core/filter_manager_spec.rb
View
9 spec/rspec/core/filter_manager_spec.rb
@@ -171,5 +171,14 @@ module RSpec::Core
filter_manager.include :full_description => "this and that"
filter_manager.inclusions.should eq(:full_description => "this and that")
end
+
+ [:locations, :line_numbers, :full_description].each do |filter|
+ it "does nothing on include if already set standalone filter #{filter}" do
+ filter_manager = FilterManager.new
+ filter_manager.include filter => "a_value"
+ filter_manager.include :foo => :bar
+ filter_manager.inclusions.should eq(filter => "a_value")
+ end
+ end
end
end

0 comments on commit ae95c6a

Please sign in to comment.