diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-15 20:32:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-15 20:32:09 -0700 |
commit | 40aa8daf2f1d86cd95b0cd4883813ecb3033f484 (patch) | |
tree | 1f224d258ef8d214236768dbc68298f25b14e0bc | |
parent | 3ec6d4addfa40c1b08afccc2bdb00f2a2473ee4b (diff) | |
parent | 7a5897902e7c64811213dc414c3e3ddd23467c9b (diff) | |
download | chef-40aa8daf2f1d86cd95b0cd4883813ecb3033f484.tar.gz |
Merge pull request #5330 from chef/lcg/derp
derp fix for master breakage
-rw-r--r-- | spec/unit/file_content_management/tempfile_spec.rb | 7 |
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 |