Scope setup to the tests that need it
This commit is contained in:
parent
6e634890e8
commit
9a0098dbec
@ -1,10 +1,6 @@
|
|||||||
require 'testing_env'
|
require 'testing_env'
|
||||||
|
|
||||||
class MachOPathnameTests < Test::Unit::TestCase
|
class MachOPathnameTests < Test::Unit::TestCase
|
||||||
def setup
|
|
||||||
@archs = [:i386, :x86_64, :ppc7400, :ppc64].extend(ArchitectureListExtension)
|
|
||||||
end
|
|
||||||
|
|
||||||
def dylib_path(name)
|
def dylib_path(name)
|
||||||
Pathname.new("#{TEST_FOLDER}/mach/#{name}.dylib")
|
Pathname.new("#{TEST_FOLDER}/mach/#{name}.dylib")
|
||||||
end
|
end
|
||||||
@ -117,6 +113,12 @@ class MachOPathnameTests < Test::Unit::TestCase
|
|||||||
assert !pn.mach_o_bundle?
|
assert !pn.mach_o_bundle?
|
||||||
assert_equal :dunno, pn.arch
|
assert_equal :dunno, pn.arch
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ArchitectureListExtensionTests < MachOPathnameTests
|
||||||
|
def setup
|
||||||
|
@archs = [:i386, :x86_64, :ppc7400, :ppc64].extend(ArchitectureListExtension)
|
||||||
|
end
|
||||||
|
|
||||||
def test_architecture_list_extension_universal_checks
|
def test_architecture_list_extension_universal_checks
|
||||||
assert @archs.universal?
|
assert @archs.universal?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user