diff options
author | sersut <serdar@opscode.com> | 2013-08-14 14:08:02 +0300 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-08-14 14:08:02 +0300 |
commit | 221d12397bbb49120b9aeba6d7c953fd490d1daf (patch) | |
tree | d50af9ed295cd8685aeba0a0195333709f00968f | |
parent | 3ffc33dbc4f8c1155fc540522c9c7fade223be52 (diff) | |
download | chef-221d12397bbb49120b9aeba6d7c953fd490d1daf.tar.gz |
Fix windows configure specs on windows.
-rw-r--r-- | chef/spec/unit/knife/configure_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chef/spec/unit/knife/configure_spec.rb b/chef/spec/unit/knife/configure_spec.rb index 85ee996dd5..3b956c64ae 100644 --- a/chef/spec/unit/knife/configure_spec.rb +++ b/chef/spec/unit/knife/configure_spec.rb @@ -87,7 +87,7 @@ describe Chef::Knife::Configure do @knife.ask_user_for_config @out.string.should match(Regexp.escape("Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem]")) if windows? - @knife.admin_client_key.should == 'C:/etc/chef/webui.pem' + @knife.admin_client_key.capitalize.should == 'C:/etc/chef/webui.pem' else @knife.admin_client_key.should == '/etc/chef/webui.pem' end @@ -99,7 +99,7 @@ describe Chef::Knife::Configure do @knife.ask_user_for_config @out.string.should_not match(Regexp.escape("Please enter the location of the existing admin client's private key:")) if windows? - @knife.admin_client_key.should == 'C:/home/you/.chef/my-webui.pem' + @knife.admin_client_key.capitalize.should == 'C:/home/you/.chef/my-webui.pem' else @knife.admin_client_key.should == '/home/you/.chef/my-webui.pem' end @@ -109,7 +109,7 @@ describe Chef::Knife::Configure do @knife.ask_user_for_config @out.string.should_not match(Regexp.escape("Please enter the location of the existing admin client's private key: [/etc/chef/webui.pem]")) if windows? - @knife.admin_client_key.should_not == 'C:/etc//chef/webui.pem' + @knife.admin_client_key.capitalize.should_not == 'C:/etc//chef/webui.pem' else @knife.admin_client_key.should_not == '/etc/chef/webui.pem' end @@ -138,7 +138,7 @@ describe Chef::Knife::Configure do @knife.ask_user_for_config @out.string.should match(Regexp.escape("Please enter the location of the validation key: [/etc/chef/validation.pem]")) if windows? - @knife.validation_key.should == 'C:/etc/chef/validation.pem' + @knife.validation_key.capitalize.should == 'C:/etc/chef/validation.pem' else @knife.validation_key.should == '/etc/chef/validation.pem' end @@ -149,7 +149,7 @@ describe Chef::Knife::Configure do @knife.ask_user_for_config @out.string.should_not match(Regexp.escape("Please enter the location of the validation key:")) if windows? - @knife.validation_key.should == 'C:/home/you/.chef/my-validation.pem' + @knife.validation_key.capitalize.should == 'C:/home/you/.chef/my-validation.pem' else @knife.validation_key.should == '/home/you/.chef/my-validation.pem' end @@ -174,9 +174,9 @@ describe Chef::Knife::Configure do @knife.chef_server.should == 'http://localhost:5000' @knife.admin_client_name.should == 'my-webui' if windows? - @knife.admin_client_key.should == 'C:/home/you/.chef/my-webui.pem' - @knife.validation_key.should == 'C:/home/you/.chef/my-validation.pem' - @knife.new_client_key.should == 'C:/home/you/a-new-user.pem' + @knife.admin_client_key.capitalize.should == 'C:/home/you/.chef/my-webui.pem' + @knife.validation_key.capitalize.should == 'C:/home/you/.chef/my-validation.pem' + @knife.new_client_key.capitalize.should == 'C:/home/you/a-new-user.pem' else @knife.admin_client_key.should == '/home/you/.chef/my-webui.pem' @knife.validation_key.should == '/home/you/.chef/my-validation.pem' |