提交 3c7b29da 编写于 作者: A Arun Agrawal

Test added to check mass_assignment_sanitizer is not present if --skip-active-record provided.

上级 6b3af028
...@@ -314,6 +314,15 @@ def test_force_old_style_hash ...@@ -314,6 +314,15 @@ def test_force_old_style_hash
end end
end end
def test_generated_environments_file_for_sanitizer
run_generator [destination_root, "--skip-active-record"]
["config/environments/development.rb", "config/environments/test.rb"].each do |env_file|
assert_file env_file do |file|
assert_no_match(/config.active_record.mass_assignment_sanitizer = :strict/, file)
end
end
end
protected protected
def action(*args, &block) def action(*args, &block)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册