Skip to content

Commit

Permalink
little more test coverage for FilterManager#include
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha committed Dec 1, 2011
1 parent 355f727 commit ae95c6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/rspec/core/filter_manager_spec.rb
Expand Up @@ -171,5 +171,14 @@ module RSpec::Core
filter_manager.include :full_description => "this and that" filter_manager.include :full_description => "this and that"
filter_manager.inclusions.should eq(:full_description => "this and that") filter_manager.inclusions.should eq(:full_description => "this and that")
end 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
end end

0 comments on commit ae95c6a

Please sign in to comment.