diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-15 18:45:51 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-15 18:45:51 -0700 |
commit | 7a5897902e7c64811213dc414c3e3ddd23467c9b (patch) | |
tree | ae1d668369262f85489103249aac8096f3bfed54 /spec/unit | |
parent | f5ea7178fc8ce49bf255e3a3bba03a542a276a59 (diff) | |
download | chef-7a5897902e7c64811213dc414c3e3ddd23467c9b.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>
Diffstat (limited to 'spec/unit')
-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 |