diff options
| author | Adam Smith | 2017-09-27 00:17:47 -0700 |
|---|---|---|
| committer | Adam Smith | 2017-09-30 18:25:12 -0700 |
| commit | 92311901c9d85e0e43147386535118b66ca718cd (patch) | |
| tree | fc87fcca3515b415b94c001f8e9e6eac5d3c9d93 /Library/Homebrew/test/support | |
| parent | a1140f7b926ce7b87727a6cd105cbe2d788f3a4c (diff) | |
| download | brew-92311901c9d85e0e43147386535118b66ca718cd.tar.bz2 | |
add available languages to cask info command
add language tests for dsl
add fixtures, tests for languages info output
add extra lines
Diffstat (limited to 'Library/Homebrew/test/support')
| -rw-r--r-- | Library/Homebrew/test/support/fixtures/cask/Casks/with-conditional-languages.rb | 9 | ||||
| -rw-r--r-- | Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb | 18 |
2 files changed, 27 insertions, 0 deletions
diff --git a/Library/Homebrew/test/support/fixtures/cask/Casks/with-conditional-languages.rb b/Library/Homebrew/test/support/fixtures/cask/Casks/with-conditional-languages.rb new file mode 100644 index 000000000..bf3b9b1c4 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/Casks/with-conditional-languages.rb @@ -0,0 +1,9 @@ +cask 'with-conditional-languages' do + version '1.2.3' + sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94' + + url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip" + homepage 'http://example.com/local-caffeine' + + app 'Caffeine.app' +end diff --git a/Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb b/Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb new file mode 100644 index 000000000..90ff63846 --- /dev/null +++ b/Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb @@ -0,0 +1,18 @@ +cask 'with-languages' do + version '1.2.3' + + language "zh" do + sha256 "abc123" + "zh-CN" + end + + language "en-US", default: true do + sha256 "xyz789" + "en-US" + end + + url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip" + homepage 'http://example.com/local-caffeine' + + app 'Caffeine.app' +end |
