Geminstaller C0 Coverage Information - RCov

/Users/woolley/.rvm/gems/ruby-1.8.7-p174@geminstaller/gems/rspec-1.3.0/lib/spec/example.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/example.rb 164 21
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 module Spec
2   # == Example Groups and Code Examples
3   #
4   # A Code Example is an executable example of how a bit of code is expected
5   # to behave.
6   #
7   # An Example Group is a group of code examples.
8   #
9   # RSpec exposes a DSL to describe groups of examples.
10   #
11   #   describe Account do
12   #     it "should have a balance of $0" do
13   #       account = Account.new
14   #       account.balance.should == Money.new(0, :dollars)
15   #     end
16   #   end
17   #
18   # == Before and After
19   #
20   # You can use the <tt>before()</tt> and <tt>after()</tt> methods to extract
21   # common code within an Example Group. Both methods take an optional scope
22   # argument so you can run the block before :each example or before :all
23   # examples
24   #
25   #   describe "..." do
26   #     before :all do
27   #       ...
28   #     end
29   #
30   #     before :each do
31   #       ...
32   #     end
33   #
34   #     it "should do something" do
35   #       ...
36   #     end
37   #
38   #     it "should do something else" do
39   #       ...
40   #     end
41   #
42   #     after :each do
43   #       ...
44   #     end
45   #
46   #     after :all do
47   #       ...
48   #     end
49   #
50   #   end
51   #
52   # The <tt>before :each</tt> block will run before each of the examples, once
53   # for each example. Likewise, the <tt>after :each</tt> block will run after
54   # each of the examples.
55   #
56   # It is also possible to specify a <tt>before :all</tt> and <tt>after
57   # :all</tt> block that will run only once for each example group, before the
58   # first <code>before :each</code> and after the last <code>after
59   # :each</code> respectively. The use of these is generally discouraged,
60   # because it introduces dependencies between the examples. Still, it might
61   # prove useful for very expensive operations if you know what you are doing.
62   #
63   # == Local helper methods
64   #
65   # You can include local helper methods by simply expressing them within an
66   # example group:
67   #
68   #   describe "..." do
69   #
70   #     it "..." do
71   #       helper_method
72   #     end
73   #
74   #     def helper_method
75   #       ...
76   #     end
77   #
78   #   end
79   #
80   # == Included helper methods
81   #
82   # You can include helper methods in multiple example groups by expressing
83   # them within a module, and then including that module in your example
84   # groups:
85   #
86   #   module AccountExampleHelperMethods
87   #     def helper_method
88   #       ...
89   #     end
90   #   end
91   #
92   #   describe "A new account" do
93   #     include AccountExampleHelperMethods
94   #     before do
95   #       @account = Account.new
96   #     end
97   #
98   #     it "should have a balance of $0" do
99   #       helper_method
100   #       @account.balance.should eql(Money.new(0, :dollars))
101   #     end
102   #   end
103   #
104   # == Shared Example Groups
105   #
106   # You can define a shared example group, that may be used on other groups
107   #
108   #  share_examples_for "All Editions" do
109   #    it "all editions behaviour" ...
110   #  end
111   #
112   #  describe SmallEdition do
113   #    it_should_behave_like "All Editions"
114   #
115   #    it "should do small edition stuff" do
116   #      ...
117   #    end
118   #  end
119   #
120   # You can also assign the shared group to a module and include that
121   #
122   #  share_as :AllEditions do
123   #    it "should do all editions stuff" ...
124   #  end
125   #
126   #  describe SmallEdition do
127   #    it_should_behave_like AllEditions
128   #
129   #    it "should do small edition stuff" do
130   #      ...
131   #    end
132   #  end
133   #
134   # And, for those of you who prefer to use something more like Ruby, you can
135   # just include the module directly
136   #
137   #  describe SmallEdition do
138   #    include AllEditions
139   #
140   #    it "should do small edition stuff" do
141   #      ...
142   #    end
143   #  end
144   module Example
145   end
146 end
147 
148 require 'timeout'
149 require 'spec/example/args_and_options'
150 require 'spec/example/predicate_matchers'
151 require 'spec/example/example_group_proxy'
152 require 'spec/example/example_proxy'
153 require 'spec/example/subject'
154 require 'spec/example/before_and_after_hooks'
155 require 'spec/example/pending'
156 require 'spec/example/module_reopening_fix'
157 require 'spec/example/example_group_hierarchy'
158 require 'spec/example/example_group_methods'
159 require 'spec/example/example_methods'
160 require 'spec/example/example_group'
161 require 'spec/example/shared_example_group'
162 require 'spec/example/example_group_factory'
163 require 'spec/example/errors'
164 require 'spec/example/example_matcher'

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