Geminstaller C0 Coverage Information - RCov

spec/unit/rubygems_version_checker_spec.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/unit/rubygems_version_checker_spec.rb 15 14
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 dir = File.dirname(__FILE__)
2 require File.expand_path("#{dir}/../helper/spec_helper")
3 
4 describe "the RubyVersionChecker" do
5   it "should correctly determine matches for gem specifications" do
6     checker_class = GemInstaller::RubyGemsVersionChecker
7     checker_class.matches?('< 2', :rubygems_version => '1').should be_true
8     checker_class.matches?('<2', :rubygems_version => '1').should be_true
9     checker_class.matches?('< 0.0.2', :rubygems_version => '0.0.1').should be_true
10     checker_class.matches?('< 0.0.1', :rubygems_version => '0.0.2').should be_false
11     checker_class.matches?(["~> 0.8","< 0.9"], :rubygems_version => '0.7.9').should be_false
12     checker_class.matches?(["~> 0.8","< 0.9"], :rubygems_version => '0.8.1').should be_true
13     checker_class.matches?(["~> 0.8","< 0.9"], :rubygems_version => '0.9').should be_false
14   end
15 end

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