From 4cbdeba87c455d7cebd3c02a420c8ab63c2cd271 Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 31 Mar 2023 12:03:39 -0400 Subject: [PATCH] Add test to guide feature development for #1119 In an effort to drive out the implementation, we start with a feature test asserting the desired developer configuration. Co-authored-by: Dimiter Petrov --- spec/features/new_project_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/features/new_project_spec.rb b/spec/features/new_project_spec.rb index be19738b0..0ec27c6fd 100644 --- a/spec/features/new_project_spec.rb +++ b/spec/features/new_project_spec.rb @@ -109,6 +109,14 @@ ) end + it "prevents strict loading in development" do + result = IO.read("#{project_path}/config/environments/development.rb") + + expect(result).to match( + /^ +config.active_record.strict_loading_by_default = true$/ + ) + end + it "adds explicit quiet_assets configuration" do result = IO.read("#{project_path}/config/application.rb")