Geminstaller C0 Coverage Information - RCov

spec/unit/geminstaller_error_spec.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
spec/unit/geminstaller_error_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 "an GemInstallerError" do
5   it "should format a descriptive exit message based on message, command, and args" do
6     message = "message"
7     command = "command"
8     args = ['arg1', 'arg2']
9     gem_command_output = ['msg1','msg2']
10     error = GemInstaller::GemInstallerError.new
11     descriptive_exit_message = error.descriptive_exit_message(message, command, args, gem_command_output)
12     expected_error_message = /message.*Gem command was:.*command arg1 arg2.*Gem command output was:.*msg1.*msg2/m
13     descriptive_exit_message.should match(expected_error_message)
14   end
15 end

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