Skip to content
Snippets Groups Projects
Unverified Commit 65fbcc86 authored by Izaak Beekman's avatar Izaak Beekman
Browse files

Add test for MPI choice cop's autocorrect

parent ffe30058
No related branches found
No related tags found
No related merge requests found
......@@ -292,6 +292,14 @@ describe RuboCop::Cop::FormulaAudit::MpiCheck do
^^^^^^^^^^^^^^^^^^ Use 'depends_on "open-mpi"' instead of 'depends_on "mpich"'.
end
RUBY
expect_correction(<<~RUBY)
class Foo < Formula
desc "foo"
url 'https://brew.sh/foo-1.0.tgz'
depends_on "open-mpi"
end
RUBY
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment