From df20bf4aa25d9d7680bba3448150acde3a4e0ad1 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 24 Jun 2018 20:57:41 +0900 Subject: Add an assertion that `credentials:edit` works when `RAILS_MASTER_KEY` env is specified --- railties/test/commands/credentials_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/test') 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 -- cgit v1.2.3