Geminstaller C0 Coverage Information - RCov

spec/unit/bundler_exporter_spec.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/unit/bundler_exporter_spec.rb 29 25
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 "BundlerExporter" do
5   before(:each) do
6     @yaml_text = <<-STRING_END
7       gems:
8         - name: mygem
9           version: '> 0.1'
10     STRING_END
11     @yaml = YAML.load(@yaml_text)
12     @config = GemInstaller::Config.new(@yaml)
13     @bundler_exporter = GemInstaller::BundlerExporter.new
14     @mock_output_proxy = mock("Mock OutputProxy")
15     @bundler_exporter.output_proxy = @mock_output_proxy
16   end
17 
18   it "should convert a geminstaller config into a bundler manifest" do
19     manifest = @bundler_exporter.convert(@config)
20     manifest.should match(/^source :gemcutter/m)
21     manifest.should match(/^gem "mygem", "> 0.1"/m)
22   end
23   
24   it "should output" do
25     @mock_output_proxy.should_receive(:sysout).with(%Q{source :gemcutter\ngem "mygem", "> 0.1"\n})
26     @bundler_exporter.output(@config)
27   end
28 end
29 

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