17 lines
487 B
Ruby
Raw Normal View History

2017-03-05 19:26:56 +01:00
describe Hbc::Container::Dmg, :cask do
2018-07-22 23:13:32 +02:00
describe "#mount" do
let(:transmission) { Hbc::CaskLoader.load(cask_path("local-transmission")) }
subject(:dmg) { described_class.new(transmission, Pathname(transmission.url.path)) }
2016-08-18 22:11:42 +03:00
2018-07-22 23:13:32 +02:00
it "does not store nil mounts for dmgs with extra data" do
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