aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-14 16:50:24 +0100
committerGitHub2016-11-14 16:50:24 +0100
commit3a01fbadcd14fb180635d6464f2c600a738d50b5 (patch)
treee84414014d51503cf8dfa47e46ffec9fe26158ca /Library/Homebrew/test
parentee143482e4323be29a60ee2965835a54eac2ace8 (diff)
parent6c1d42386df7994607f4b6096dd75323ff9bbb3a (diff)
downloadbrew-3a01fbadcd14fb180635d6464f2c600a738d50b5.tar.bz2
Merge pull request #1362 from reitermarkus/rubocop
Update RuboCop to 0.45.0.
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