homebrew-cask/test/cask_test.rb

18 lines
410 B
Ruby
Raw Normal View History

require 'test_helper'
describe Cask do
describe "load" do
it "returns an instance of the cask with the given name" do
c = Cask.load("adium")
c.must_be_kind_of(Cask)
c.must_be_instance_of(Adium)
end
it "raises an error when attempting to load a cask that doesn't exist" do
lambda {
Cask.load("notacask")
}.must_raise(CaskUnavailableError)
end
end
end