Rspec Steps C0 Coverage Information - RCov

rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/compatibility.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/compatibility.rb 14 14
100.00%
100.00%

Key

Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

1 RSpec::Matchers.constants.each do |c|
2   if Class === (klass = RSpec::Matchers.const_get(c))
3     if klass.public_instance_methods.any? {|m| ['failure_message_for_should',:failure_message_for_should].include?(m)}
4       klass.class_eval do
5         alias_method :failure_message, :failure_message_for_should
6       end
7     end
8     if klass.public_instance_methods.any? {|m| ['failure_message_for_should_not',:failure_message_for_should_not].include?(m)}
9       klass.class_eval do
10         alias_method :negative_failure_message, :failure_message_for_should_not
11       end
12     end
13   end
14 end

Generated on Fri Apr 22 17:22:42 -0700 2011 with rcov 0.9.8