diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-18 09:46:41 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-18 09:46:41 +0900 |
commit | 218e50ce59c3abfa5ffdfac253cdeb2f74602da0 (patch) | |
tree | a58601dca20daa54c56a0cc071446064a5823f30 /railties | |
parent | 028bd403efa2cba02f3871651cb3d14420ab9a9b (diff) | |
download | rails-218e50ce59c3abfa5ffdfac253cdeb2f74602da0.tar.gz rails-218e50ce59c3abfa5ffdfac253cdeb2f74602da0.tar.bz2 rails-218e50ce59c3abfa5ffdfac253cdeb2f74602da0.zip |
Fix test name to match the test behavior
These tests are for testing the `rake` method.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/generators/actions_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb index 6d53230eab..a2b35124c5 100644 --- a/railties/test/generators/actions_test.rb +++ b/railties/test/generators/actions_test.rb @@ -308,7 +308,7 @@ class ActionsTest < Rails::Generators::TestCase end end - def test_rails_should_run_rake_command_with_default_env + def test_rake_should_run_rake_command_with_default_env assert_called_with(generator, :run, ["rake log:clear RAILS_ENV=development", verbose: false]) do with_rails_env nil do action :rake, "log:clear" @@ -316,13 +316,13 @@ class ActionsTest < Rails::Generators::TestCase end end - def test_rails_with_env_option_should_run_rake_command_in_env + def test_rake_with_env_option_should_run_rake_command_in_env assert_called_with(generator, :run, ["rake log:clear RAILS_ENV=production", verbose: false]) do action :rake, "log:clear", env: "production" end end - test "rails command with RAILS_ENV variable should run rake command in env" do + test "rake with RAILS_ENV variable should run rake command in env" do assert_called_with(generator, :run, ["rake log:clear RAILS_ENV=production", verbose: false]) do with_rails_env "production" do action :rake, "log:clear" @@ -338,7 +338,7 @@ class ActionsTest < Rails::Generators::TestCase end end - test "rails command with sudo option should run rake command with sudo" do + test "rake with sudo option should run rake command with sudo" do assert_called_with(generator, :run, ["sudo rake log:clear RAILS_ENV=development", verbose: false]) do with_rails_env nil do action :rake, "log:clear", sudo: true |