aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-10 21:20:37 -0500
committerJack Nagel2014-06-10 21:21:09 -0500
commit47a2eb4f53d415ac2e2d99448f860e7be46e23ce (patch)
tree49af3dadd7bb43094e2aedaf8bc466195600175d
parent0af5e35746d37a2c9d2d06844c24449481adab8d (diff)
downloadhomebrew-47a2eb4f53d415ac2e2d99448f860e7be46e23ce.tar.bz2
Scope setup to the tests that need it
-rw-r--r--Library/Homebrew/test/test_mach.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_mach.rb b/Library/Homebrew/test/test_mach.rb
index c501b86f2..0d393f700 100644
--- a/Library/Homebrew/test/test_mach.rb
+++ b/Library/Homebrew/test/test_mach.rb
@@ -1,10 +1,6 @@
require 'testing_env'
class MachOPathnameTests < Test::Unit::TestCase
- def setup
- @archs = [:i386, :x86_64, :ppc7400, :ppc64].extend(ArchitectureListExtension)
- end
-
def dylib_path(name)
Pathname.new("#{TEST_FOLDER}/mach/#{name}.dylib")
end
@@ -117,6 +113,12 @@ class MachOPathnameTests < Test::Unit::TestCase
assert !pn.mach_o_bundle?
assert_equal :dunno, pn.arch
end
+end
+
+class ArchitectureListExtensionTests < MachOPathnameTests
+ def setup
+ @archs = [:i386, :x86_64, :ppc7400, :ppc64].extend(ArchitectureListExtension)
+ end
def test_architecture_list_extension_universal_checks
assert @archs.universal?