From 97333df4cb4bd006401193639400a8bc6df56e3a Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 7 Oct 2017 15:58:49 +0200 Subject: Add helper method for Cask fixture paths and refactor CaskLoader. --- Library/Homebrew/test/support/helper/fixtures.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/test/support') diff --git a/Library/Homebrew/test/support/helper/fixtures.rb b/Library/Homebrew/test/support/helper/fixtures.rb index 716fe2008..460fb4aef 100644 --- a/Library/Homebrew/test/support/helper/fixtures.rb +++ b/Library/Homebrew/test/support/helper/fixtures.rb @@ -8,6 +8,10 @@ module Test def bundle_path(name) Pathname.new("#{TEST_FIXTURE_DIR}/mach/#{name}.bundle") end + + def cask_path(name) + Pathname.new("#{TEST_FIXTURE_DIR}/cask/Casks/#{name}.rb") + end end end end -- cgit v1.2.3