Skip to content

Commit

Permalink
Stub mktmpdir and remove_entry_secure in os x package providers
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarlisle authored and haus committed Apr 4, 2012
1 parent 7ac1ec8 commit f7829ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/unit/provider/package/appdmg_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
fh.stubs(:path).yields "/tmp/foo"
resource[:source] = "foo.dmg"
described_class.stubs(:open).yields fh
Dir.stubs(:mktmpdir).returns "/tmp/testtmp123"
FileUtils.stubs(:remove_entry_secure)
end

describe "from a remote source" do
Expand Down
2 changes: 2 additions & 0 deletions spec/unit/provider/package/pkgdmg_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
fh.stubs(:path).yields "/tmp/foo"
resource[:source] = "foo.dmg"
File.stubs(:open).yields fh
Dir.stubs(:mktmpdir).returns "/tmp/testtmp123"
FileUtils.stubs(:remove_entry_secure)
end

it "should fail when a disk image with no system entities is mounted" do
Expand Down

0 comments on commit f7829ec

Please sign in to comment.