diff options
| author | Markus Reiter | 2016-11-13 23:37:40 +0100 |
|---|---|---|
| committer | Markus Reiter | 2016-11-13 23:37:40 +0100 |
| commit | 59e2d6772158d8df0735708ae78ddec6ccc68026 (patch) | |
| tree | 5f229d5a65884cf040c21cd4c20f1be1629dd5c5 /Library/Homebrew/test | |
| parent | c648518f35611b16dfdd1355b2c8498d7f6d54d7 (diff) | |
| download | brew-59e2d6772158d8df0735708ae78ddec6ccc68026.tar.bz2 | |
No if/unless-modifier on multiline blocks.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_hardware.rb | 10 |
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 |
