mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Move invalid Cask fixtures into sub-directories.
This commit is contained in:
parent
8d0d5eb6d9
commit
791af7e910
@ -19,7 +19,7 @@ describe Hbc::Artifact::Artifact, :cask do
|
|||||||
context "without target" do
|
context "without target" do
|
||||||
it "fails to load" do
|
it "fails to load" do
|
||||||
expect {
|
expect {
|
||||||
Hbc::CaskLoader.load(cask_path("with-generic-artifact-no-target"))
|
Hbc::CaskLoader.load(cask_path("invalid/invalid-generic-artifact-no-target"))
|
||||||
}.to raise_error(Hbc::CaskInvalidError, /target required for Generic Artifact/)
|
}.to raise_error(Hbc::CaskInvalidError, /target required for Generic Artifact/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
describe Hbc::Artifact::App, :cask do
|
|
||||||
# FIXME: Doesn't actually raise because the `app` stanza is not evaluated on load.
|
|
||||||
# it "must raise" do
|
|
||||||
# lambda {
|
|
||||||
# Hbc::CaskLoader.load(cask_path("with-two-apps-incorrect"))
|
|
||||||
# }.must_raise
|
|
||||||
# # TODO: later give the user a nice exception for this case and check for it here
|
|
||||||
# end
|
|
||||||
end
|
|
@ -72,7 +72,7 @@ describe Hbc::DSL, :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "when it contains a deprecated DSL version", :needs_compat do
|
context "when it contains a deprecated DSL version", :needs_compat do
|
||||||
let(:token) { "with-dsl-version" }
|
let(:token) { "compat/with-dsl-version" }
|
||||||
|
|
||||||
it "may use deprecated DSL version hash syntax" do
|
it "may use deprecated DSL version hash syntax" do
|
||||||
allow(ENV).to receive(:[]).with("HOMEBREW_DEVELOPER").and_return(nil)
|
allow(ENV).to receive(:[]).with("HOMEBREW_DEVELOPER").and_return(nil)
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
cask 'generic-artifact-no-target' do
|
|
||||||
artifact 'Caffeine.app'
|
|
||||||
end
|
|
@ -1,4 +1,4 @@
|
|||||||
cask 'with-generic-artifact-no-target' do
|
cask 'invalid-generic-artifact-no-target' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
cask 'with-two-apps-incorrect' do
|
|
||||||
version '1.2.3'
|
|
||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
|
||||||
homepage 'http://example.com/local-caffeine'
|
|
||||||
|
|
||||||
app 'Caffeine.app', 'Caffeine.app/Contents/MacOS/Caffeine'
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user