aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-07-02 02:04:07 +0200
committerGitHub2017-07-02 02:04:07 +0200
commiteb110e94f002966ffb241e49ca6154fdae601362 (patch)
treefa2e7eca43ed6691a8f681a0d35cf8aeb1ba3a1f /Library/Homebrew/test
parenta94a9382858d05b697599b9ec948c0b016bf4b6f (diff)
parent80f827e926a35ee8c4555cd14e4a23948dc6bff1 (diff)
downloadbrew-eb110e94f002966ffb241e49ca6154fdae601362.tar.bz2
Merge pull request #2772 from reitermarkus/dmg-eula
Fix DMG mounting.
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/cask/container/dmg_spec.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Homebrew/test/cask/container/dmg_spec.rb b/Library/Homebrew/test/cask/container/dmg_spec.rb
index a94362aba..4f3f57071 100644
--- a/Library/Homebrew/test/cask/container/dmg_spec.rb
+++ b/Library/Homebrew/test/cask/container/dmg_spec.rb
@@ -9,11 +9,12 @@ describe Hbc::Container::Dmg, :cask do
Hbc::SystemCommand,
)
- begin
- dmg.mount!
- expect(dmg.mounts).not_to include nil
- ensure
- dmg.eject!
+ dmg.mount do |mounts|
+ begin
+ expect(mounts).not_to include nil
+ ensure
+ mounts.each(&dmg.public_method(:eject))
+ end
end
end
end