aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2017-06-11 03:55:20 +0200
committerMarkus Reiter2017-06-13 23:57:23 +0200
commit2f0aad5d88d7e495f0a85581bc7f448ddb844152 (patch)
treef86ac38c8ae1ae181423d23187b23c3a445c93bc /Library/Homebrew/test
parent054ed10cb1ea2d64c39ba2a3208c14a33d31274d (diff)
downloadbrew-2f0aad5d88d7e495f0a85581bc7f448ddb844152.tar.bz2
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