Created
June 12, 2012 16:38
-
-
Save joshcooper/2918595 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
1) Hiera::Backend#datadir should default to /var/lib/hiera | |
Failure/Error: Backend.datadir(:rspec, {}) | |
Mocha::ExpectationError: | |
unexpected invocation: Hiera::Backend.parse_string('C:\\ProgramData/PuppetLabs/hiera/var', {}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Hiera::Backend.parse_string('/var/lib/hiera', {}) | |
# ./lib/hiera/backend.rb:16:in `datadir' | |
# ./spec/unit/backend_spec.rb:15 | |
2) Hiera#initialize should default to /etc/hiera.yaml for config | |
Failure/Error: Hiera.new | |
Mocha::ExpectationError: | |
unexpected invocation: Hiera::Config.load('C:\\ProgramData/PuppetLabs/hiera/etc/hiera.yaml') | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Hiera::Config.load('/etc/hiera.yaml') | |
satisfied expectations: | |
- allowed any number of times, not yet invoked: Hiera::Config.load_backends(any_parameters) | |
# ./spec/../lib/hiera.rb:51:in `initialize' | |
# ./spec/unit/hiera_spec.rb:36:in `new' | |
# ./spec/unit/hiera_spec.rb:36 | |
3) Hiera::Util Hiera::Util.microsoft_windows? should return false on posix systems | |
Failure/Error: Hiera::Util.microsoft_windows?.should be_false | |
expected true to be false | |
# ./spec/unit/util_spec.rb:19 | |
4) Hiera::Util Hiera::Util.config_dir should return the correct path for posix systems | |
Failure/Error: Hiera::Util.config_dir.should == '/etc' | |
expected: "/etc" | |
got: "C:\\ProgramData/PuppetLabs/hiera/etc" (using ==) | |
# ./spec/unit/util_spec.rb:26 | |
5) Hiera::Util Hiera::Util.var_dir should return the correct path for posix systems | |
Failure/Error: Hiera::Util.var_dir.should == '/var/lib/hiera' | |
expected: "/var/lib/hiera" | |
got: "C:\\ProgramData/PuppetLabs/hiera/var" (using ==) | |
# ./spec/unit/util_spec.rb:33 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment