Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created March 12, 2009 20:03
Show Gist options
  • Save jtimberman/78256 to your computer and use it in GitHub Desktop.
Save jtimberman/78256 to your computer and use it in GitHub Desktop.
$ 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