summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-09-15 18:45:51 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-09-15 18:45:51 -0700
commit7a5897902e7c64811213dc414c3e3ddd23467c9b (patch)
treeae1d668369262f85489103249aac8096f3bfed54
parentf5ea7178fc8ce49bf255e3a3bba03a542a276a59 (diff)
downloadchef-lcg/derp.tar.gz
derp fix for master breakagelcg/derp
thought this was green, but it was clearly red on appveyor/windows Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/file_content_management/tempfile_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/file_content_management/tempfile_spec.rb b/spec/unit/file_content_management/tempfile_spec.rb
index b57b1ae8e1..a04ace5f16 100644
--- a/spec/unit/file_content_management/tempfile_spec.rb
+++ b/spec/unit/file_content_management/tempfile_spec.rb
@@ -37,10 +37,15 @@ describe Chef::FileContentManagement::Tempfile do
expect(subject.send(:tempfile_basename)).to eql("chef-new_file")
end
- it "should strip the extension" do
+ it "should strip the extension", :unix_only do
subject = tempfile_object_for_path("/foo/bar/new_file.html.erb")
expect(subject.send(:tempfile_basename)).to eql(".chef-new_file")
end
+
+ it "should strip the extension", :windows_only do
+ subject = tempfile_object_for_path("/foo/bar/new_file.html.erb")
+ expect(subject.send(:tempfile_basename)).to eql("chef-new_file")
+ end
end
describe "#tempfile_extension" do