diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-06-24 20:57:41 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-06-24 20:57:41 +0900 |
commit | df20bf4aa25d9d7680bba3448150acde3a4e0ad1 (patch) | |
tree | e28fb95ab37c330b59a3cae266952d90cfd87fa4 | |
parent | fb9925d77595480dd3f6a6a69a2873f898481f91 (diff) | |
download | rails-df20bf4aa25d9d7680bba3448150acde3a4e0ad1.tar.gz rails-df20bf4aa25d9d7680bba3448150acde3a4e0ad1.tar.bz2 rails-df20bf4aa25d9d7680bba3448150acde3a4e0ad1.zip |
Add an assertion that `credentials:edit` works when `RAILS_MASTER_KEY` env is specified
-rw-r--r-- | railties/test/commands/credentials_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/commands/credentials_test.rb b/railties/test/commands/credentials_test.rb index 663ee73bcd..fc16b8194f 100644 --- a/railties/test/commands/credentials_test.rb +++ b/railties/test/commands/credentials_test.rb @@ -49,7 +49,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase FileUtils.rm("config/master.key") switch_env("RAILS_MASTER_KEY", key) do - run_edit_command + assert_match(/access_key_id: 123/, run_edit_command) assert_not File.exist?("config/master.key") end end |