Improve tests, extend fixtures

This commit is contained in:
2026-07-08 16:00:25 +02:00
parent 30c80e6e2e
commit ef8214cfa7
7 changed files with 109 additions and 55 deletions

View File

@@ -115,7 +115,7 @@ class ActiveSupport::TestCase
yield(ActionMailer::Base.deliveries.last)
end
def column_title(attribute)
def column(attribute)
model = self.class.name.delete_suffix('Test').singularize.constantize
model.human_attribute_name(attribute)
end