Skip to content

Commit

Permalink
Merge pull request #3842 from arunagw/app_gen_test
Browse files Browse the repository at this point in the history
App Generator test
  • Loading branch information
josevalim committed Dec 3, 2011
2 parents 2ab2077 + c4f1868 commit 75981a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/test/generators/app_generator_test.rb
Expand Up @@ -329,16 +329,16 @@ def test_force_old_style_hash

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|
%w(development test).each do |env|
assert_file "config/environments/#{env}.rb" do |file|
assert_no_match(/config.active_record.mass_assignment_sanitizer = :strict/, file)
end
end
end

def test_generated_environments_file_for_auto_explain
run_generator [destination_root, "--skip-active-record"]
%w(development test production).each do |env|
%w(development production).each do |env|
assert_file "config/environments/#{env}.rb" do |file|
assert_no_match %r(auto_explain_threshold_in_seconds), file
end
Expand Down

0 comments on commit 75981a9

Please sign in to comment.