Don't use cats in bottle tag tests (thanks 10.9).
This commit is contained in:
parent
daacb69e9b
commit
c59800011a
@ -2,42 +2,42 @@ require 'testing_env'
|
|||||||
require 'bottles'
|
require 'bottles'
|
||||||
|
|
||||||
class BottleTagTests < Test::Unit::TestCase
|
class BottleTagTests < Test::Unit::TestCase
|
||||||
def test_cat_tiger_ppc
|
def test_tag_tiger_ppc
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
|
||||||
Hardware::CPU.stubs(:type).returns(:ppc)
|
Hardware::CPU.stubs(:type).returns(:ppc)
|
||||||
Hardware::CPU.stubs(:family).returns(:foo)
|
Hardware::CPU.stubs(:family).returns(:foo)
|
||||||
assert_equal :foo, bottle_tag
|
assert_equal :foo, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_tiger_intel
|
def test_tag_tiger_intel
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.4"))
|
||||||
Hardware::CPU.stubs(:type).returns(:intel)
|
Hardware::CPU.stubs(:type).returns(:intel)
|
||||||
assert_equal :tiger, bottle_tag
|
assert_equal :tiger, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_leopard
|
def test_tag_leopard
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.5"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.5"))
|
||||||
assert_equal :leopard, bottle_tag
|
assert_equal :leopard, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_snow_leopard_32
|
def test_tag_snow_leopard_32
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.6"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.6"))
|
||||||
Hardware::CPU.stubs(:is_64_bit?).returns(false)
|
Hardware::CPU.stubs(:is_64_bit?).returns(false)
|
||||||
assert_equal :snow_leopard_32, bottle_tag
|
assert_equal :snow_leopard_32, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_snow_leopard_64
|
def test_tag_snow_leopard_64
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.6"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.6"))
|
||||||
Hardware::CPU.stubs(:is_64_bit?).returns(true)
|
Hardware::CPU.stubs(:is_64_bit?).returns(true)
|
||||||
assert_equal :snow_leopard, bottle_tag
|
assert_equal :snow_leopard, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_lion
|
def test_tag_lion
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.7"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.7"))
|
||||||
assert_equal :lion, bottle_tag
|
assert_equal :lion, bottle_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_cat_mountain_lion
|
def test_tag_mountain_lion
|
||||||
MacOS.stubs(:version).returns(MacOS::Version.new("10.8"))
|
MacOS.stubs(:version).returns(MacOS::Version.new("10.8"))
|
||||||
assert_equal :mountain_lion, bottle_tag
|
assert_equal :mountain_lion, bottle_tag
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user