Created
March 12, 2009 20:03
-
-
Save jtimberman/78256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ spec -cf specdoc perl_spec.rb | |
Ohai::System plugin perl | |
- should run perl -V:version -V:archname | |
- should close perl command's stdin | |
- should iterate over each line of perl command's stdout | |
- should set languages[:perl][:version] (ERROR - 1) | |
- should set languages[:perl][:archname] (ERROR - 2) | |
- should set languages[:perl] if perl command succeeds (FAILED - 3) | |
- should not set languages[:perl] if perl command fails | |
1) | |
NoMethodError in 'Ohai::System plugin perl should set languages[:perl][:version]' | |
undefined method `[]' for nil:NilClass | |
./perl_spec.rb:60: | |
2) | |
NoMethodError in 'Ohai::System plugin perl should set languages[:perl][:archname]' | |
undefined method `[]' for nil:NilClass | |
./perl_spec.rb:65: | |
3) | |
'Ohai::System plugin perl should set languages[:perl] if perl command succeeds' FAILED | |
expected #has_key?(:perl) to return true, got false | |
./perl_spec.rb:77: | |
Finished in 0.014543 seconds | |
7 examples, 3 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment