aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-09-11 17:43:09 +0100
committerMike McQuaid2016-09-11 21:48:05 +0100
commit0f09674fe61f58572190f263d9173422d4e417d8 (patch)
tree1a077cc5a01b28e6daa682c88aa22190b3f745f6 /Library
parent219c373115dea67d7753ab51e1e95f5f41e8e9f8 (diff)
downloadbrew-0f09674fe61f58572190f263d9173422d4e417d8.tar.bz2
test/test_formula: fix Rubocop warnings.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 8dd77e186..eb276073a 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -574,7 +574,7 @@ class FormulaTests < Homebrew::TestCase
url "foo-1.0"
pour_bottle? do
reason "true reason"
- satisfy { var == var }
+ satisfy { true }
end
end
assert f_true.pour_bottle?
@@ -586,7 +586,10 @@ class OutdatedVersionsTests < Homebrew::TestCase
attr_reader :f
def setup
- @f = formula { url "foo"; version "1.20" }
+ @f = formula do
+ url "foo"
+ version "1.20"
+ end
@outdated_prefix = HOMEBREW_CELLAR/"#{f.name}/1.11"
@same_prefix = HOMEBREW_CELLAR/"#{f.name}/1.20"
@greater_prefix = HOMEBREW_CELLAR/"#{f.name}/1.21"