"title"=>"Added fixture method and bugfixes",
"summary"=>"Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.",
"content"=>"
Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.
\n\nRails security update releases
\nRails Versions 6.1.7.7, 7.0.8.1, and 7.1.3.2 have been released last week which contain fixes for security issues.
Expose a generic “fixture” method in tests
\nTo avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:
assert_equal \"Ruby on Rails\", web_sites(:rubyonrails).name\nassert_equal \"Ruby on Rails\", fixture(:web_sites, :rubyonrails).name\n
Introduce assert_initializer
\nCompliments the existing initializer generator action.
Set default_url_options values in development/test environments
\n Prior to this commit, new Rails applications would raise ActionView::Template::Error if a mailer included a url built with a *_path helper.
Fix error message for not derived foreign key in Active Record
\nUsing query_constraints method with a single non-primary-key column used to raise as expected, but with an incorrect error message. This has been fixed to raise with a more appropriate error message.
You can view the whole list of changes here.\nWe had 13 contributors to the Rails codebase this past week!
\n\nUntil next time!
\n\nSubscribe to get these updates mailed to you.
","author"=>"Wojtek",
"link"=>"https://rubyonrails.org/2024/3/1/this-week-in-rails",
"published_date"=>Fri, 01 Mar 2024 00:00:00.000000000 UTC +00:00,
"image_url"=>nil,
"feed_url"=>"https://rubyonrails.org/2024/3/1/this-week-in-rails",
"language"=>nil,
"active"=>true,
"ricc_source"=>"feedjira::v1",
"created_at"=>Mon, 01 Apr 2024 20:13:48.447120000 UTC +00:00,
"updated_at"=>Mon, 21 Oct 2024 18:04:00.633141000 UTC +00:00,
"newspaper"=>"Ruby on Rails",
"macro_region"=>"Technology"}