From cb3ad215b4fc011e3405e6e577b97819c683036a Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 27 Jun 2016 19:02:40 -0400 Subject: test: Add tests for Keg#mach_o_files link behavior. Move dylib_path and bundle_path from test_mach to testing_env to accommodate the new tests. Closes #400. Signed-off-by: Martin Afanasjew --- Library/Homebrew/test/testing_env.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Homebrew/test/testing_env.rb') diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index 4e7089e42..6be622cc5 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -112,5 +112,13 @@ module Homebrew } refute exp.eql?(act), msg end + + def dylib_path(name) + Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.dylib") + end + + def bundle_path(name) + Pathname.new("#{TEST_DIRECTORY}/mach/#{name}.bundle") + end end end -- cgit v1.2.3