homebrew-cask-versions/test/cask/container/dmg_test.rb
phinze a9cd8e7101 fix a few bugs around recent changes
- re-added a lost nil guard on `Dmg` containers
 - `FakeSystemCommand` was still returning an array of split lines
   instead of a string, even though its real counterpart switched to
   string when install/uninstall landed
 - flushed out an alfred cli bug
 - moved plist parsing down to SystemCommand layer
2013-09-22 14:44:31 -05:00

22 lines
461 B
Ruby

require 'test_helper'
describe Cask::Container::Dmg do
describe "mount!" do
it "does not store nil mounts for dmgs with extra data" do
transmission = Cask.load('local-transmission')
dmg = Cask::Container::Dmg.new(
transmission,
Pathname(transmission.url.path),
Cask::SystemCommand
)
begin
dmg.mount!
dmg.mounts.wont_include nil
ensure
dmg.eject!
end
end
end
end