aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-13 23:37:40 +0100
committerMarkus Reiter2016-11-13 23:37:40 +0100
commit59e2d6772158d8df0735708ae78ddec6ccc68026 (patch)
tree5f229d5a65884cf040c21cd4c20f1be1629dd5c5 /Library/Homebrew/test
parentc648518f35611b16dfdd1355b2c8498d7f6d54d7 (diff)
downloadbrew-59e2d6772158d8df0735708ae78ddec6ccc68026.tar.bz2
No if/unless-modifier on multiline blocks.
Diffstat (limited to 'Library/Homebrew/test')
-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