提交 218e50ce 编写于 作者: Y yuuji.yaginuma

Fix test name to match the test behavior

These tests are for testing the `rake` method.
上级 028bd403
......@@ -308,7 +308,7 @@ def test_generate_should_run_script_generate_with_argument_and_options
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 @@ def test_rails_should_run_rake_command_with_default_env
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 @@ def test_rails_with_env_option_should_run_rake_command_in_env
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册