Convert DMG test to spec.
This commit is contained in:
parent
4de74bf744
commit
92e2e7a216
@ -1,7 +1,7 @@
|
|||||||
require "test_helper"
|
require "spec_helper"
|
||||||
|
|
||||||
describe Hbc::Container::Dmg do
|
describe Hbc::Container::Dmg do
|
||||||
describe "mount!" do
|
describe "#mount!" do
|
||||||
it "does not store nil mounts for dmgs with extra data" 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")
|
transmission = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb")
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ describe Hbc::Container::Dmg do
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
dmg.mount!
|
dmg.mount!
|
||||||
dmg.mounts.wont_include nil
|
expect(dmg.mounts).not_to include nil
|
||||||
ensure
|
ensure
|
||||||
dmg.eject!
|
dmg.eject!
|
||||||
end
|
end
|
||||||
Loading…
x
Reference in New Issue
Block a user