stylistic changes for cask info tests
This commit is contained in:
parent
92311901c9
commit
270bf0506a
@ -90,7 +90,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should print languages if the Cask provided any" do
|
it "prints languages specified in the Cask" do
|
||||||
expect {
|
expect {
|
||||||
Hbc::CLI::Info.run("with-languages")
|
Hbc::CLI::Info.run("with-languages")
|
||||||
}.to output(<<-EOS.undent).to_stdout
|
}.to output(<<-EOS.undent).to_stdout
|
||||||
@ -107,14 +107,14 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'should not print "Languages" section divider if the languages block has no output' do
|
it 'does not print "Languages" section divider if the languages block has no output' do
|
||||||
expect {
|
expect {
|
||||||
Hbc::CLI::Info.run("with-conditional-languages")
|
Hbc::CLI::Info.run("without-languages")
|
||||||
}.to output(<<-EOS.undent).to_stdout
|
}.to output(<<-EOS.undent).to_stdout
|
||||||
with-conditional-languages: 1.2.3
|
without-languages: 1.2.3
|
||||||
http://example.com/local-caffeine
|
http://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/caskroom/homebrew-spec/blob/master/Casks/with-conditional-languages.rb
|
From: https://github.com/caskroom/homebrew-spec/blob/master/Casks/without-languages.rb
|
||||||
==> Name
|
==> Name
|
||||||
None
|
None
|
||||||
==> Artifacts
|
==> Artifacts
|
||||||
|
|||||||
@ -178,7 +178,7 @@ describe Hbc::DSL, :cask do
|
|||||||
expect(cask.call.url.to_s).to eq("https://example.org/en-US.zip")
|
expect(cask.call.url.to_s).to eq("https://example.org/en-US.zip")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns empty array if no languages specified" do
|
it "returns an empty array if no languages are specified" do
|
||||||
cask = lambda do
|
cask = lambda do
|
||||||
Hbc::Cask.new("cask-with-apps") do
|
Hbc::Cask.new("cask-with-apps") do
|
||||||
url "https://example.org/file.zip"
|
url "https://example.org/file.zip"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
cask 'with-conditional-languages' do
|
cask 'without-languages' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user