formula_desc_cop_spec: tweak for new whitespace check

This commit is contained in:
Dominyk Tiller 2018-08-06 19:15:31 +01:00
parent 73194b460d
commit 9d7f872ad6
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -65,7 +65,7 @@ describe RuboCop::Cop::FormulaAuditStrict::Desc do
expect_offense(<<~RUBY, "/homebrew-core/Formula/foo.rb")
class Foo < Formula
url 'http://example.com/foo-1.0.tgz'
desc 'An '
desc 'An aardvark'
^^^ Description shouldn\'t start with an indefinite article i.e. \"An\"
end
RUBY