Geminstaller C0 Coverage Information - RCov

spec/functional/aaa_test_gem_home_spec.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/functional/aaa_test_gem_home_spec.rb 25 20
92.00%
90.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 "test_gem_home_spec: the TestGemHome class" do
5   include FileUtils
6   
7   it "should create a test gem home" do
8     GemInstaller::TestGemHome.reset
9     GemInstaller::TestGemHome.use
10 
11     # make sure rubygems dirs, were created
12     entries = Dir.entries("#{test_gem_home_dir}")
13     if GemInstaller::RubyGemsVersionChecker.matches?('<1.2.0')
14       expected_entries = ["source_cache","cache", "doc", "gems", "specifications"]
15     elsif GemInstaller::RubyGemsVersionChecker.matches?(['>=1.2.0','<1.3.4'])
16       expected_entries = ["cache", "doc", "gems", "specifications"]
17     else
18       expected_entries = ["site_ruby"]
19     end
20     
21     expected_entries.each do |expected_subdir|
22       entries.should include(expected_subdir)
23     end
24   end
25 end

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