summaryrefslogtreecommitdiff
path: root/spec/unit/file_content_management/tempfile_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/file_content_management/tempfile_spec.rb')
-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