Rspec Steps C0 Coverage Information - RCov

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

Name Total Lines Lines of Code Total Coverage Code Coverage
rcov/ruby/1.8/gems/rspec-expectations-2.5.0/lib/rspec/matchers/dsl.rb 21 17
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 RSpec
2   module Matchers
3     module DSL
4       # See RSpec::Matchers
5       def define(name, &declarations)
6         define_method name do |*expected|
7           $matcher_execution_context = self
8           RSpec::Matchers::Matcher.new name, *expected, &declarations
9         end
10       end
11 
12       alias_method :matcher, :define
13 
14       if RSpec.respond_to?(:configure)
15         RSpec.configure {|c| c.extend self}
16       end
17     end
18   end
19 end
20 
21 RSpec::Matchers.extend RSpec::Matchers::DSL

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