22 lines
560 B
Ruby
Raw Normal View History

2017-03-05 19:26:56 +01:00
describe Hbc::Container::Dmg, :cask do
2017-02-09 03:31:55 +01:00
describe "#mount!" do
2016-08-18 22:11:42 +03:00
it "does not store nil mounts for dmgs with extra data" do
transmission = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb")
2016-08-18 22:11:42 +03:00
dmg = Hbc::Container::Dmg.new(
transmission,
Pathname(transmission.url.path),
Hbc::SystemCommand,
2016-08-18 22:11:42 +03:00
)
2017-06-11 03:55:20 +02:00
dmg.mount do |mounts|
begin
expect(mounts).not_to include nil
ensure
mounts.each(&dmg.public_method(:eject))
end
2016-08-18 22:11:42 +03:00
end
end
end
end