diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-03-20 07:18:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 07:18:19 +0100 |
commit | 1835d87fb848fd9f13e43bf16abd41be231b1666 (patch) | |
tree | 13f547e6d35123e5fd5917d0cc203698cebf05e0 /railties/test | |
parent | 95911db192cb60047fbfaa2ffed118807a414f2c (diff) | |
parent | 6dfe25a86c7cad9334cd08833c67f501cc37de83 (diff) | |
download | rails-1835d87fb848fd9f13e43bf16abd41be231b1666.tar.gz rails-1835d87fb848fd9f13e43bf16abd41be231b1666.tar.bz2 rails-1835d87fb848fd9f13e43bf16abd41be231b1666.zip |
Merge pull request #28481 from y-yagi/fix_warning
Fix `warning: character class has duplicated range`
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/encrypted_secrets_generator_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/encrypted_secrets_generator_test.rb b/railties/test/generators/encrypted_secrets_generator_test.rb index 747abf19ed..21fdcab19f 100644 --- a/railties/test/generators/encrypted_secrets_generator_test.rb +++ b/railties/test/generators/encrypted_secrets_generator_test.rb @@ -12,11 +12,11 @@ class EncryptedSecretsGeneratorTest < Rails::Generators::TestCase def test_generates_key_file_and_encrypted_secrets_file run_generator - assert_file "config/secrets.yml.key", /[\w\d]+/ + assert_file "config/secrets.yml.key", /\w+/ assert File.exist?("config/secrets.yml.enc") - assert_no_match(/production:\n# external_api_key: [\w\d]+/, IO.binread("config/secrets.yml.enc")) - assert_match(/production:\n# external_api_key: [\w\d]+/, Rails::Secrets.read) + assert_no_match(/production:\n# external_api_key: \w+/, IO.binread("config/secrets.yml.enc")) + assert_match(/production:\n# external_api_key: \w+/, Rails::Secrets.read) end def test_appends_to_gitignore |