aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_hardware.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_hardware.rb')
-rw-r--r--Library/Homebrew/test/test_hardware.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_hardware.rb b/Library/Homebrew/test/test_hardware.rb
index 56d0980fa..2bea5387d 100644
--- a/Library/Homebrew/test/test_hardware.rb
+++ b/Library/Homebrew/test/test_hardware.rb
@@ -6,8 +6,10 @@ class HardwareTests < Homebrew::TestCase
assert_includes [:intel, :ppc, :dunno], Hardware::CPU.type
end
- def test_hardware_intel_family
- families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake, :dunno]
- assert_includes families, Hardware::CPU.family
- end if Hardware::CPU.intel?
+ if Hardware::CPU.intel?
+ def test_hardware_intel_family
+ families = [:core, :core2, :penryn, :nehalem, :arrandale, :sandybridge, :ivybridge, :haswell, :broadwell, :skylake, :dunno]
+ assert_includes families, Hardware::CPU.family
+ end
+ end
end