diff options
| author | JCount | 2017-10-09 14:20:08 -0400 |
|---|---|---|
| committer | JCount | 2017-10-15 10:36:51 -0400 |
| commit | 85fa79b5cf6f1430d67ea5af7c10571caa1db5d7 (patch) | |
| tree | 8b5ac9a07755b12fc9945623028c225b844d3476 /Library/Homebrew | |
| parent | ca52eee2adbdf272b6f08953e5fe111667df7686 (diff) | |
| download | brew-85fa79b5cf6f1430d67ea5af7c10571caa1db5d7.tar.bz2 | |
lines_cop_spec: improve language in universal_binary and build tests
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/test/rubocops/lines_cop_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/rubocops/lines_cop_spec.rb b/Library/Homebrew/test/rubocops/lines_cop_spec.rb index e798db9e3..af816a5a9 100644 --- a/Library/Homebrew/test/rubocops/lines_cop_spec.rb +++ b/Library/Homebrew/test/rubocops/lines_cop_spec.rb @@ -82,7 +82,7 @@ end describe RuboCop::Cop::FormulaAudit::Comments do subject(:cop) { described_class.new } - context "When auditing formula" do + context "When auditing formulae" do it "with commented cmake call" do source = <<-EOS.undent class Foo < Formula @@ -154,7 +154,7 @@ end describe RuboCop::Cop::FormulaAudit::Miscellaneous do subject(:cop) { described_class.new } - context "When auditing formula" do + context "When auditing formulae" do it "with FileUtils" do source = <<-EOS.undent class Foo < Formula @@ -380,7 +380,7 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do end end - it "with build.universal? exempted formula" do + it "with a build.universal? exemption reports no offenses" do source = <<-EOS.undent class Wine < Formula desc "foo" @@ -392,7 +392,7 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do EOS inspect_source(source, "/homebrew-core/Formula/wine.rb") - expect(cop.offenses).to eq([]) + expect(cop.offenses).to be_empty end it "with ENV.universal_binary" do @@ -419,7 +419,7 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do end end - it "with ENV.universal_binary exempted formula" do + it "with an ENV.universal_binary exemption reports no offenses" do source = <<-EOS.undent class Wine < Formula desc "foo" @@ -431,7 +431,7 @@ describe RuboCop::Cop::FormulaAudit::Miscellaneous do EOS inspect_source(source, "/homebrew-core/Formula/wine.rb") - expect(cop.offenses).to eq([]) + expect(cop.offenses).to be_empty end it "with ENV.x11" do |
