aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/test
diff options
context:
space:
mode:
authorMarkus Reiter2016-08-23 02:36:21 +0200
committerMarkus Reiter2016-08-24 00:43:32 +0200
commit85635a1e1927281edbf55ac0214357fd184c70bc (patch)
tree62139240e7241836e80a690b63a1a5c67e9e98fd /Library/Homebrew/cask/test
parenta70c60baeacf6ec6835fb0112fb5d1c9dd51012a (diff)
downloadbrew-85635a1e1927281edbf55ac0214357fd184c70bc.tar.bz2
Merge Cask’s `Pathname` extension with Homebrew’s.
Diffstat (limited to 'Library/Homebrew/cask/test')
-rw-r--r--Library/Homebrew/cask/test/cask/installer_test.rb2
-rw-r--r--Library/Homebrew/cask/test/support/Casks/container-gzip.rb2
-rw-r--r--Library/Homebrew/cask/test/test_helper.rb1
3 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cask/test/cask/installer_test.rb b/Library/Homebrew/cask/test/cask/installer_test.rb
index 34ea2e321..2275c3080 100644
--- a/Library/Homebrew/cask/test/cask/installer_test.rb
+++ b/Library/Homebrew/cask/test/cask/installer_test.rb
@@ -154,7 +154,7 @@ describe Hbc::Installer do
dest_path = Hbc.caskroom.join("container-gzip", asset.version)
dest_path.must_be :directory?
- file = Hbc.appdir.join("container-gzip--#{asset.version}")
+ file = Hbc.appdir.join("container")
file.must_be :file?
end
diff --git a/Library/Homebrew/cask/test/support/Casks/container-gzip.rb b/Library/Homebrew/cask/test/support/Casks/container-gzip.rb
index 0a5c64ba9..eac74a04c 100644
--- a/Library/Homebrew/cask/test/support/Casks/container-gzip.rb
+++ b/Library/Homebrew/cask/test/support/Casks/container-gzip.rb
@@ -5,5 +5,5 @@ test_cask 'container-gzip' do
url TestHelper.local_binary_url('container.gz')
homepage 'https://example.com/container-gzip'
- app 'container-gzip--1.2.3'
+ app 'container'
end
diff --git a/Library/Homebrew/cask/test/test_helper.rb b/Library/Homebrew/cask/test/test_helper.rb
index fdbd8af0e..24c979535 100644
--- a/Library/Homebrew/cask/test/test_helper.rb
+++ b/Library/Homebrew/cask/test/test_helper.rb
@@ -14,7 +14,6 @@ tap_root = Pathname.new(ENV["HOMEBREW_LIBRARY"]).join("Taps", "caskroom", "homeb
$LOAD_PATH.unshift(File.expand_path("#{ENV['HOMEBREW_REPOSITORY']}/Library/Homebrew"))
require "global"
-require "extend/pathname"
# add Homebrew-Cask to load path
$LOAD_PATH.push(project_root.join("lib").to_s)