Add test for MPI choice cop's autocorrect

This commit is contained in:
Izaak Beekman 2019-06-06 16:27:53 -04:00
parent ffe30058ab
commit 65fbcc86d0
No known key found for this signature in database
GPG Key ID: A93CE70D8021BD0F

View File

@ -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