summaryrefslogtreecommitdiff
path: root/chef/spec
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2010-04-13 15:48:54 -0700
committerDaniel DeLeo <dan@opscode.com>2010-04-30 18:28:18 -0700
commit6ec627b134ca3bd3107424ee6ab5ad8a1eea3bdb (patch)
tree6357f3b42adbd53d8ac1c28a284211339865210b /chef/spec
parentfc070b1c58a83eb5e61aa797326f2f2025113b7c (diff)
downloadchef-6ec627b134ca3bd3107424ee6ab5ad8a1eea3bdb.tar.gz
format the tempfile names a bit better
Diffstat (limited to 'chef/spec')
-rw-r--r--chef/spec/unit/rest_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/chef/spec/unit/rest_spec.rb b/chef/spec/unit/rest_spec.rb
index e41d9f1608..10008b4f7b 100644
--- a/chef/spec/unit/rest_spec.rb
+++ b/chef/spec/unit/rest_spec.rb
@@ -248,7 +248,7 @@ describe Chef::REST do
describe "streaming downloads to a tempfile" do
before do
- @tempfile = Tempfile.open("chef-rspec-rest_spec-line#{__LINE__}-")
+ @tempfile = Tempfile.open("chef-rspec-rest_spec-line-#{__LINE__}--")
Tempfile.stub!(:new).with("chef-rest").and_return(@tempfile)
Tempfile.stub!(:open).and_return(@tempfile)
end
@@ -403,7 +403,7 @@ describe Chef::REST do
context "when streaming downloads to a tempfile" do
before do
- @tempfile = Tempfile.open("chef-rspec-rest_spec-line#{__LINE__}")
+ @tempfile = Tempfile.open("chef-rspec-rest_spec-line-#{__LINE__}--")
Tempfile.stub!(:new).with("chef-rest").and_return(@tempfile)
@http_response = Net::HTTPSuccess.new("1.1",200, "it-works")
@http_response.stub!(:read_body)
@@ -476,7 +476,7 @@ describe Chef::REST do
it "closes and unlinks the tempfile when the response is a redirect" do
Tempfile.rspec_reset
- tempfile = Tempfile.open("chef-rspec-rest_spec-line#{__LINE__}")
+ tempfile = Tempfile.open("chef-rspec-rest_spec-line#{__LINE__}--")
Tempfile.stub!(:new).with("chef-rest").and_return(tempfile)
tempfile.should_receive(:close!).at_least(2).times