summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdelano <stephen@opscode.com>2012-11-29 16:06:49 -0800
committersdelano <stephen@opscode.com>2012-11-29 16:06:49 -0800
commitc536fb710531e051572f723174361e4ef3507e66 (patch)
tree5f43061160487e6175b72d50bc048737a3d66fbd
parent81a724430f4cee4c35fb4d1671729eb258265f40 (diff)
downloadchef-c536fb710531e051572f723174361e4ef3507e66.tar.gz
tests: use File.expand_path for expected key location
-rw-r--r--chef/spec/unit/knife/core/bootstrap_context_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/unit/knife/core/bootstrap_context_spec.rb b/chef/spec/unit/knife/core/bootstrap_context_spec.rb
index ecd0e7fda1..f77a1f7c6a 100644
--- a/chef/spec/unit/knife/core/bootstrap_context_spec.rb
+++ b/chef/spec/unit/knife/core/bootstrap_context_spec.rb
@@ -57,7 +57,7 @@ describe Chef::Knife::Core::BootstrapContext do
end
it "reads the validation key when it contains a ~" do
- IO.should_receive(:read).with("#{ENV['HOME']}/my.key")
+ IO.should_receive(:read).with(File.expand_path("my.key", ENV['HOME']))
@chef_config = {:validation_key => '~/my.key'}
@context = Chef::Knife::Core::BootstrapContext.new(@config, @run_list, @chef_config)
@context.validation_key