Skip to content

Instantly share code, notes, and snippets.

@pnasrat
Created January 16, 2009 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pnasrat/47879 to your computer and use it in GitHub Desktop.
Save pnasrat/47879 to your computer and use it in GitHub Desktop.
1)
Spec::Mocks::MockExpectationError in 'Ohai::System Darwin plugin platform should run sw_vers'
Mock 'Ohai::System' expected :popen4 with ("sw_vers") but received it with ("/usr/bin/sw_vers")
/Users/pnasrat/Development/ohai/lib/ohai/plugins/darwin/platform.rb:19:in `from_file'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:117:in `_require_plugin'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `each'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `_require_plugin'
./spec/ohai/plugins/darwin/platform_spec.rb:40:
2)
Spec::Mocks::MockExpectationError in 'Ohai::System Darwin plugin platform should close sw_vers stdin'
Mock 'STDIN' expected :close with (any args) once, but received it 0 times
./spec/ohai/plugins/darwin/platform_spec.rb:44:
3)
Spec::Mocks::MockExpectationError in 'Ohai::System Darwin plugin platform should iterate over each line of sw_vers stdout'
Mock 'STDOUT' expected :each with (any args) once, but received it 0 times
./spec/ohai/plugins/darwin/platform_spec.rb:49:
4)
'Ohai::System Darwin plugin platform should set platform to ProductName, downcased with _ for \s' FAILED
expected: "mac_os_x",
got: nil (using ==)
./spec/ohai/plugins/darwin/platform_spec.rb:55:
5)
'Ohai::System Darwin plugin platform should set platform_version to ProductVersion' FAILED
expected: "10.5.5",
got: nil (using ==)
./spec/ohai/plugins/darwin/platform_spec.rb:60:
6)
'Ohai::System Darwin plugin platform should set platform_build to BuildVersion' FAILED
expected: "9F33",
got: nil (using ==)
./spec/ohai/plugins/darwin/platform_spec.rb:65:
7)
NoMethodError in 'Ohai::System plugin os should set os_version to kernel_release'
undefined method `[]' for nil:NilClass
/Users/pnasrat/Development/ohai/lib/ohai/plugins/os.rb:22:in `from_file'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:117:in `_require_plugin'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `each'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `_require_plugin'
./spec/ohai/plugins/os_spec.rb:32:
8)
NoMethodError in 'Ohai::System plugin os on linux should set the os to linux'
undefined method `[]' for nil:NilClass
/Users/pnasrat/Development/ohai/lib/ohai/plugins/os.rb:22:in `from_file'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:117:in `_require_plugin'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `each'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `_require_plugin'
./spec/ohai/plugins/os_spec.rb:43:
9)
NoMethodError in 'Ohai::System plugin os on darwin should set the os to darwin'
undefined method `[]' for nil:NilClass
/Users/pnasrat/Development/ohai/lib/ohai/plugins/os.rb:22:in `from_file'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:117:in `_require_plugin'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `each'
/Users/pnasrat/Development/ohai/spec/../lib/ohai/system.rb:112:in `_require_plugin'
./spec/ohai/plugins/os_spec.rb:55:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment