diff options
Diffstat (limited to 'Library/Homebrew/cask/spec')
| -rw-r--r-- | Library/Homebrew/cask/spec/cask/staged_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/spec/cask/staged_spec.rb b/Library/Homebrew/cask/spec/cask/staged_spec.rb new file mode 100644 index 000000000..10f1cbb47 --- /dev/null +++ b/Library/Homebrew/cask/spec/cask/staged_spec.rb @@ -0,0 +1,18 @@ +require "spec_helper" + +# TODO: this test should be named after the corresponding class, once +# that class is abstracted from installer.rb. It makes little sense +# to be invoking bundle_identifier off of the installer instance. +describe "Operations on staged Casks" do + describe "bundle ID" do + let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/local-transmission.rb") } + let(:installer) { Hbc::Installer.new(cask) } + it "fetches the bundle ID from a staged cask" do + shutup do + installer.install + end + + expect(installer.bundle_identifier).to eq("org.m0k.transmission") + end + end +end |
