summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2013-02-07 10:31:38 -0500
committerBryan McLellan <btm@loftninjas.org>2013-02-07 10:32:32 -0500
commit8b2e0d46506c6744ddc8fe918f830795aa53c73b (patch)
tree8c813c44a76082329e649bd9fc782ffc0c7d5796
parent8f723df36c3c3fb39778862facfc112acac570ef (diff)
downloadchef-8b2e0d46506c6744ddc8fe918f830795aa53c73b.tar.gz
Fix up knife user public key test for windows paths
-rw-r--r--spec/unit/knife/user_create_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb
index 5bc9738313..0e36e148ac 100644
--- a/spec/unit/knife/user_create_spec.rb
+++ b/spec/unit/knife/user_create_spec.rb
@@ -66,7 +66,7 @@ describe Chef::Knife::UserCreate do
it "sets the public key if given" do
@knife.config[:user_key] = "/a/filename"
- File.stub(:read).with("/a/filename").and_return("a_key")
+ File.stub(:read).with(File.expand_path("/a/filename")).and_return("a_key")
@user.should_receive(:public_key).with("a_key")
@knife.run
end