aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/dev-cmd/audit_spec.rb
diff options
context:
space:
mode:
authorGautham Goli2017-07-30 20:14:59 +0530
committerGautham Goli2017-08-06 02:28:58 +0530
commitaffd9055c2aaaf3535ed1cb778b65a4bee5ef0e2 (patch)
tree60d758895d96ff2cbe538b8f6f8f71329f46ba07 /Library/Homebrew/test/dev-cmd/audit_spec.rb
parent7a17a166ecd3145b501cb190d9b4cc1e6dba31ba (diff)
downloadbrew-affd9055c2aaaf3535ed1cb778b65a4bee5ef0e2.tar.bz2
audit: Port classname and template comments audit rules from line_problems method to rubocop
Diffstat (limited to 'Library/Homebrew/test/dev-cmd/audit_spec.rb')
-rw-r--r--Library/Homebrew/test/dev-cmd/audit_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb
index f2d8a8e7c..037865fdf 100644
--- a/Library/Homebrew/test/dev-cmd/audit_spec.rb
+++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -263,28 +263,6 @@ describe FormulaAuditor do
expect(fa.problems.shift)
.to eq('Use pkgshare instead of (share/"foolibc++")')
end
-
- specify "no space in class inheritance" do
- fa = formula_auditor "foo", <<-EOS.undent
- class Foo<Formula
- url '/foo-1.0.tgz'
- end
- EOS
-
- fa.line_problems "class Foo<Formula", 1
- expect(fa.problems.shift)
- .to eq("Use a space in class inheritance: class Foo < Formula")
- end
-
- specify "default template" do
- fa = formula_auditor "foo", "class Foo < Formula; url '/foo-1.0.tgz'; end"
-
- fa.line_problems '# system "cmake", ".", *std_cmake_args', 3
- expect(fa.problems.shift).to eq("Commented cmake call found")
-
- fa.line_problems "# PLEASE REMOVE", 3
- expect(fa.problems.shift).to eq("Please remove default template comments")
- end
end
describe "#audit_github_repository" do