Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/expectations.rb

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

Generated on Mon May 10 23:40:27 -0700 2010 with rcov 0.9.8