mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
- 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
22 lines
461 B
Ruby
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
|