diff options
| author | Jack Nagel | 2014-06-10 21:20:37 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-10 21:21:09 -0500 |
| commit | 9a0098dbec66bead260ccc9ebfb0008db7bc3182 (patch) | |
| tree | b21feed2f40a65f8f340c4521f8b2d32b2769eaa /Library/Homebrew | |
| parent | 6e634890e8ffd8336e0826508ec0d67d1e426162 (diff) | |
| download | brew-9a0098dbec66bead260ccc9ebfb0008db7bc3182.tar.bz2 | |
Scope setup to the tests that need it
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/test_mach.rb | 10 |
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? |
