test/option_declaration_spec: Align test description with contents

This commit is contained in:
Issy Long 2021-02-19 23:54:07 +00:00
parent f194b5e983
commit 38a427bf0d
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -42,7 +42,7 @@ describe RuboCop::Cop::FormulaAudit::OptionDeclarations do
RUBY RUBY
end end
it "reports an offense when `build.without?` is used for a conditional dependency" do it "reports an offense when `build.with?` is used for a conditional dependency" do
expect_offense(<<~RUBY) expect_offense(<<~RUBY)
class Foo < Formula class Foo < Formula
depends_on "bar" if build.with?("baz") depends_on "bar" if build.with?("baz")