Convert DMG test to spec.

This commit is contained in:
Markus Reiter 2017-02-09 03:31:55 +01:00
parent 4de74bf744
commit 92e2e7a216

View File

@ -1,7 +1,7 @@
require "test_helper"
require "spec_helper"
describe Hbc::Container::Dmg do
describe "mount!" do
describe "#mount!" do
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")
@ -13,7 +13,7 @@ describe Hbc::Container::Dmg do
begin
dmg.mount!
dmg.mounts.wont_include nil
expect(dmg.mounts).not_to include nil
ensure
dmg.eject!
end