summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-12-02 16:02:25 -0800
committersersut <serdar@opscode.com>2013-12-02 16:02:25 -0800
commit9b5df5f8e5b9fcb90c754e21e2a27ff8219db067 (patch)
treebe7ab12b695adb86e274c864714016b9dc5cf062
parent43ac91afb3331de93011828228b9524035b891ef (diff)
downloadchef-9b5df5f8e5b9fcb90c754e21e2a27ff8219db067.tar.gz
Backport the missing test update for Tempfile security fix.
-rw-r--r--chef/spec/unit/knife/core/ui_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/knife/core/ui_spec.rb b/chef/spec/unit/knife/core/ui_spec.rb
index c71aa32817..f7bfc502f4 100644
--- a/chef/spec/unit/knife/core/ui_spec.rb
+++ b/chef/spec/unit/knife/core/ui_spec.rb
@@ -123,7 +123,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)
@@ -135,7 +135,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)