diff options
| author | Josh Hagins | 2016-10-24 12:29:22 -0400 |
|---|---|---|
| committer | GitHub | 2016-10-24 12:29:22 -0400 |
| commit | 4f73fa701210b803cd6a088f1a5b46f7bb4e129c (patch) | |
| tree | cc3c1cd4edd9b264d49293af8555c95f37f7b23f /Library/Homebrew/test | |
| parent | 3f3fa4d0f7d5c28598fb7a2495d01efa35c7f7a2 (diff) | |
| parent | b28b21fd7fec17e372f8bf0fe118c32318d44f84 (diff) | |
| download | brew-4f73fa701210b803cd6a088f1a5b46f7bb4e129c.tar.bz2 | |
Merge pull request #1363 from reitermarkus/rubocop-percent-literals
Don’t use bare percent literals.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_diagnostic.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_exceptions.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_patch.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_string.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_diagnostic.rb b/Library/Homebrew/test/test_diagnostic.rb index 33cf27b74..aa2e44cfc 100644 --- a/Library/Homebrew/test/test_diagnostic.rb +++ b/Library/Homebrew/test/test_diagnostic.rb @@ -146,7 +146,7 @@ class DiagnosticChecksTest < Homebrew::TestCase FileUtils.chmod 0755, file ENV["PATH"] = "#{path}#{File::PATH_SEPARATOR}#{ENV["PATH"]}" - assert_match %("config" scripts exist), + assert_match '"config" scripts exist', @checks.check_for_config_scripts end end diff --git a/Library/Homebrew/test/test_exceptions.rb b/Library/Homebrew/test/test_exceptions.rb index 671b433e4..689531c6e 100644 --- a/Library/Homebrew/test/test_exceptions.rb +++ b/Library/Homebrew/test/test_exceptions.rb @@ -13,7 +13,7 @@ class ExceptionsTest < Homebrew::TestCase end def test_formula_validation_error - assert_equal %(invalid attribute for formula 'foo': sha257 ("magic")), + assert_equal %q(invalid attribute for formula 'foo': sha257 ("magic")), FormulaValidationError.new("foo", "sha257", "magic").to_s end diff --git a/Library/Homebrew/test/test_patch.rb b/Library/Homebrew/test/test_patch.rb index 120f0a3a5..62624720e 100644 --- a/Library/Homebrew/test/test_patch.rb +++ b/Library/Homebrew/test/test_patch.rb @@ -119,7 +119,7 @@ class ExternalPatchTests < Homebrew::TestCase end def test_inspect - assert_equal %(#<ExternalPatch: :p1 "file:///my.patch">), @p.inspect + assert_equal '#<ExternalPatch: :p1 "file:///my.patch">', @p.inspect end def test_cached_download diff --git a/Library/Homebrew/test/test_string.rb b/Library/Homebrew/test/test_string.rb index d3f2bc268..497c4badb 100644 --- a/Library/Homebrew/test/test_string.rb +++ b/Library/Homebrew/test/test_string.rb @@ -35,6 +35,6 @@ I'm not indented def test_inreplace_sub_failure s = "foobar".extend StringInreplaceExtension s.sub! "not here", "test" - assert_equal [%(expected replacement of "not here" with "test")], s.errors + assert_equal ['expected replacement of "not here" with "test"'], s.errors end end |
