summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-23 22:27:47 -0700
committersersut <serdar@opscode.com>2013-10-23 22:27:47 -0700
commitdb37ec05e1695fd6df6525a90e3b0dc16e1ac8bf (patch)
tree64fd3f762b0841c220b03ba4ce16d3017562ac7c
parent43513d4fa8572b30e4438985265e055c3cdaed73 (diff)
downloadchef-db37ec05e1695fd6df6525a90e3b0dc16e1ac8bf.tar.gz
Turn off temp file mod check tests on windows.11.8.0.rc.3
-rw-r--r--spec/unit/knife/core/ui_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/core/ui_spec.rb b/spec/unit/knife/core/ui_spec.rb
index c56ac9eab6..18e88b6cde 100644
--- a/spec/unit/knife/core/ui_spec.rb
+++ b/spec/unit/knife/core/ui_spec.rb
@@ -124,7 +124,7 @@ describe Chef::Knife::UI do
it "returns an edited pretty json string" do
expect(subject).to eql(json_from_editor)
end
- it "the tempfile should have mode 0600" do
+ it "the tempfile should have mode 0600", :unix_only do
# XXX: this looks odd because we're really testing Tempfile.new here
expect(File.stat(@tempfile.path).mode & 0777).to eql(0600)
expect(subject).to eql(json_from_editor)
@@ -136,7 +136,7 @@ describe Chef::Knife::UI do
it "returns an edited ruby object" do
expect(subject).to eql(ruby_from_editor)
end
- it "the tempfile should have mode 0600" do
+ it "the tempfile should have mode 0600", :unix_only do
# XXX: this looks odd because we're really testing Tempfile.new here
expect(File.stat(@tempfile.path).mode & 0777).to eql(0600)
expect(subject).to eql(ruby_from_editor)