Rspec Steps C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/expectations.rb 39 13
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 require 'rspec/expectations/extensions'
2 require 'rspec/matchers'
3 require 'rspec/expectations/fail_with'
4 require 'rspec/expectations/errors'
5 require 'rspec/expectations/deprecation'
6 require 'rspec/expectations/handler'
7 require 'rspec/expectations/version'
8 require 'rspec/expectations/backward_compatibility'
9 require 'rspec/expectations/differ'
10 
11 module RSpec
12   
13   # RSpec::Expectations lets you set expectations on your objects.
14   #
15   #   result.should == 37
16   #   team.should have(11).players_on_the_field
17   #
18   # == How Expectations work.
19   #
20   # RSpec::Expectations adds two methods to Object:
21   #
22   #   should(matcher=nil)
23   #   should_not(matcher=nil)
24   #
25   # Both methods take an optional Expression Matcher (See RSpec::Matchers).
26   #
27   # When +should+ receives an Expression Matcher, it calls <tt>matches?(self)</tt>. If
28   # it returns +true+, the spec passes and execution continues. If it returns
29   # +false+, then the spec fails with the message returned by <tt>matcher.failure_message</tt>.
30   #
31   # Similarly, when +should_not+ receives a matcher, it calls <tt>matches?(self)</tt>. If
32   # it returns +false+, the spec passes and execution continues. If it returns
33   # +true+, then the spec fails with the message returned by <tt>matcher.negative_failure_message</tt>.
34   #
35   # RSpec ships with a standard set of useful matchers, and writing your own
36   # matchers is quite simple. See RSpec::Matchers for details.
37   module Expectations
38   end
39 end

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