Skip to content

Commit

Permalink
Add test to guide feature development for #1119
Browse files Browse the repository at this point in the history
In an effort to drive out the implementation, we start with a feature
test asserting the desired developer configuration.

Co-authored-by: Dimiter Petrov <[email protected]>
  • Loading branch information
stevepolitodesign and crackofdusk committed Mar 31, 2023
1 parent 1712f3e commit 4cbdeba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/features/new_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 4cbdeba

Please sign in to comment.