未验证 提交 97ac0d8a 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #31092 from...

Merge pull request #31092 from bogdanvlviv/remove-redundant-passing-skip-active-storage-in-test-cases

Remove redundant passing --skip-active-storage in test cases
......@@ -423,7 +423,7 @@ def test_config_postgresql_database
end
def test_config_jdbcmysql_database
run_generator([destination_root, "-d", "jdbcmysql", "--skip-active-storage"])
run_generator([destination_root, "-d", "jdbcmysql"])
assert_file "config/database.yml", /mysql/
assert_gem "activerecord-jdbcmysql-adapter"
end
......@@ -441,7 +441,7 @@ def test_config_jdbcpostgresql_database
end
def test_config_jdbc_database
run_generator([destination_root, "-d", "jdbc", "--skip-active-storage"])
run_generator([destination_root, "-d", "jdbc"])
assert_file "config/database.yml", /jdbc/
assert_file "config/database.yml", /mssql/
assert_gem "activerecord-jdbc-adapter"
......
......@@ -230,7 +230,7 @@ def test_template_from_dir_pwd
end
def test_ensure_that_tests_work
run_generator [destination_root, "--skip-active-storage"]
run_generator
FileUtils.cd destination_root
quietly { system "bundle install" }
assert_match(/1 runs, 1 assertions, 0 failures, 0 errors/, `bin/test 2>&1`)
......
......@@ -7,7 +7,7 @@ class PluginTestRunnerTest < ActiveSupport::TestCase
def setup
@destination_root = Dir.mktmpdir("bukkits")
Dir.chdir(@destination_root) { `bundle exec rails plugin new bukkits --skip-bundle --skip-active-storage` }
Dir.chdir(@destination_root) { `bundle exec rails plugin new bukkits --skip-bundle` }
plugin_file "test/dummy/db/schema.rb", ""
end
......
......@@ -63,7 +63,7 @@ def test_name_raises_an_error_if_name_already_used_constant
end
def test_shebang_is_added_to_rails_file
run_generator [destination_root, "--ruby", "foo/bar/baz", "--full", "--skip-active-storage"]
run_generator [destination_root, "--ruby", "foo/bar/baz", "--full"]
assert_file "bin/rails", /#!foo\/bar\/baz/
end
......
......@@ -7,7 +7,7 @@ class TestRunnerInEngineTest < ActiveSupport::TestCase
def setup
@destination_root = Dir.mktmpdir("bukkits")
Dir.chdir(@destination_root) { `bundle exec rails plugin new bukkits --full --skip-bundle --skip-active-storage` }
Dir.chdir(@destination_root) { `bundle exec rails plugin new bukkits --full --skip-bundle` }
plugin_file "test/dummy/db/schema.rb", ""
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册