Permalink
Browse files

Do not use UTF8 in test SecretsCommandTest#test_edit_secrets

  • Loading branch information...
pvalena committed May 24, 2017
1 parent c47e6ff commit edbe7c417a09d50b712e731d810825632a7e6596
Showing with 2 additions and 2 deletions.
  1. +1 −1 railties/lib/rails/secrets.rb
  2. +1 −1 railties/test/commands/secrets_test.rb
@@ -42,7 +42,7 @@ def template
<<-end_of_template.strip_heredoc
# See `secrets.yml` for tips on generating suitable keys.
# production:
# external_api_key: 1466aac22e6a869134be3d09b9e89232fc2c2289
# external_api_key: 1466aac22e6a869134be3d09b9e89232fc2c2289
end_of_template
end
@@ -23,7 +23,7 @@ def teardown
# Run twice to ensure encrypted secrets can be reread after first edit pass.
2.times do
assert_match(/external_api_key: 1466aac22e6a869134be3d09b9e89232fc2c2289/, run_edit_command)
assert_match(/external_api_key: 1466aac22e6a869134be3d09b9e89232fc2c2289/, run_edit_command)
end
end

0 comments on commit edbe7c4

Please sign in to comment.