Rspec Steps C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/block_aliases.rb 19 12
78.95%
66.67%

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 module RSpec
2   module Matchers
3     module BlockAliases
4       alias_method :to,     :should
5       alias_method :to_not, :should_not
6       alias_method :not_to, :should_not
7     end
8 
9     # Extends the submitted block with aliases to and to_not
10     # for should and should_not. Allows expectations like this:
11     #
12     #   expect { this_block }.to change{this.expression}.from(old_value).to(new_value)
13     #   expect { this_block }.to raise_error
14     def expect(&block)
15       block.extend BlockAliases
16     end
17   end
18 end
19 

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