diff options
| author | Mike McQuaid | 2016-09-12 08:09:29 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-12 08:09:29 +0100 |
| commit | 59116d08ca5fd430345af39fddca48ffa1e9d114 (patch) | |
| tree | b01940e8ac5b1c81dec5f0c89f730d5b0c30e515 /Library/Homebrew/test | |
| parent | 9a6999c30276a05c0bfc89f03b91dea4371ed407 (diff) | |
| parent | 51bda9c90efe3c3fbc197b6c1db793575444a711 (diff) | |
| download | brew-59116d08ca5fd430345af39fddca48ffa1e9d114.tar.bz2 | |
Merge pull request #927 from MikeMcQuaid/dev-cmd-rubocop
Fix Library/Homebrew/dev-cmd RuboCop warnings
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_cmd_audit.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_cmd_audit.rb b/Library/Homebrew/test/test_cmd_audit.rb index 57d4e754f..9c672f634 100644 --- a/Library/Homebrew/test/test_cmd_audit.rb +++ b/Library/Homebrew/test/test_cmd_audit.rb @@ -29,9 +29,9 @@ class FormulaTextTests < Homebrew::TestCase def test_simple_valid_formula ft = formula_text "valid", 'url "http://www.example.com/valid-1.0.tar.gz"' - refute ft.has_DATA?, "The formula should not have DATA" - refute ft.has_END?, "The formula should not have __END__" - assert ft.has_trailing_newline?, "The formula should have a trailing newline" + refute ft.data?, "The formula should not have DATA" + refute ft.end?, "The formula should not have __END__" + assert ft.trailing_newline?, "The formula should have a trailing newline" assert ft =~ /\burl\b/, "The formula should match 'url'" assert_nil ft.line_number(/desc/), "The formula should not match 'desc'" @@ -41,17 +41,17 @@ class FormulaTextTests < Homebrew::TestCase def test_trailing_newline ft = formula_text "newline" - assert ft.has_trailing_newline?, "The formula must have a trailing newline" + assert ft.trailing_newline?, "The formula must have a trailing newline" end def test_has_data ft = formula_text "data", "patch :DATA" - assert ft.has_DATA?, "The formula must have DATA" + assert ft.data?, "The formula must have DATA" end def test_has_end ft = formula_text "end", "", :patch => "__END__\na patch here" - assert ft.has_END?, "The formula must have __END__" + assert ft.end?, "The formula must have __END__" assert_equal "class End < Formula\n \nend", ft.without_patch end end |
