Skip to content

Commit

Permalink
Fix tests for activerecord main branch
Browse files Browse the repository at this point in the history
Rails changed what it prints in `inspect` method (rails/rails#49765).
Only `id` is printed by default.
  • Loading branch information
fatkodima committed Nov 8, 2023
1 parent c470a5a commit 1e39612
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/dummy/app/controllers/users_controller.rb
Expand Up @@ -19,7 +19,7 @@ def action2
# Single record with all used columns.
def action3
user = User.first
user.inspect
user.attributes
head :ok
end

Expand Down
2 changes: 1 addition & 1 deletion test/dummy/app/jobs/used_job.rb
Expand Up @@ -2,6 +2,6 @@

class UsedJob < ActiveJob::Base
def perform
User.first.inspect
User.first.attributes
end
end
2 changes: 1 addition & 1 deletion test/dummy/app/mailers/user_mailer.rb
Expand Up @@ -14,7 +14,7 @@ def unused_fields_email

def used_fields_email
user = params[:user]
_projects = Project.all.map(&:inspect)
_projects = Project.all.map(&:attributes)

mail(to: user.email) do |format|
format.text { render plain: "Text" }
Expand Down

0 comments on commit 1e39612

Please sign in to comment.