diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-25 17:03:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 17:03:16 +0900 |
commit | 15ca8ad0c1e94d11d0deb02535bc286e077d43ce (patch) | |
tree | 907d9f1410647f18c261985171bc0e1de406e183 /railties | |
parent | 299c492a7a411181bafa8597af6b0ccdd09696f4 (diff) | |
parent | 51171413bba00ab83ba3d74cc98995bc1a2842b0 (diff) | |
download | rails-15ca8ad0c1e94d11d0deb02535bc286e077d43ce.tar.gz rails-15ca8ad0c1e94d11d0deb02535bc286e077d43ce.tar.bz2 rails-15ca8ad0c1e94d11d0deb02535bc286e077d43ce.zip |
Merge pull request #35740 from sharang-d/change-test-wording
Reword test names in credentials_test.rb
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/commands/credentials_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/commands/credentials_test.rb b/railties/test/commands/credentials_test.rb index 2f2c50de6c..0ee36081c0 100644 --- a/railties/test/commands/credentials_test.rb +++ b/railties/test/commands/credentials_test.rb @@ -63,7 +63,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase end end - test "edit command properly expand environment option" do + test "edit command properly expands environment option" do assert_match(/access_key_id: 123/, run_edit_command(environment: "prod")) Dir.chdir(app_path) do assert File.exist?("config/credentials/production.key") @@ -79,7 +79,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase assert_match(/access_key_id: 123/, run_edit_command(environment: "qa")) end - test "edit command generate template file when the file does not exist" do + test "edit command generates template file when the file does not exist" do FileUtils.rm("#{app_path}/config/credentials.yml.enc") run_edit_command @@ -92,7 +92,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase assert_match(/access_key_id: 123/, run_show_command) end - test "show command raise error when require_master_key is specified and key does not exist" do + test "show command raises error when require_master_key is specified and key does not exist" do remove_file "config/master.key" add_to_config "config.require_master_key = true" @@ -112,7 +112,7 @@ class Rails::Command::CredentialsCommandTest < ActiveSupport::TestCase assert_match(/access_key_id: 123/, run_show_command(environment: "production")) end - test "show command properly expand environment option" do + test "show command properly expands environment option" do run_edit_command(environment: "production") output = run_show_command(environment: "prod") |