Skip to content

Commit 288ceea

Browse files
authored
Fix tests to handle companies status column (#1060)
1 parent c52a739 commit 288ceea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cases/coerced_tests.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def test_select_avg_with_joins_and_group_by_as_virtual_attribute_with_sql_coerce
450450
FROM companies
451451
INNER JOIN accounts ON companies.id = accounts.firm_id
452452
WHERE companies.id = ?
453-
GROUP BY companies.id, companies.type, companies.firm_id, companies.firm_name, companies.name, companies.client_of, companies.rating, companies.account_id, companies.description
453+
GROUP BY companies.id, companies.type, companies.firm_id, companies.firm_name, companies.name, companies.client_of, companies.rating, companies.account_id, companies.description, companies.status
454454
ORDER BY companies.id
455455
OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
456456
SQL
@@ -476,7 +476,7 @@ def test_select_avg_with_joins_and_group_by_as_virtual_attribute_with_ar_coerced
476476
.select("companies.*", "AVG(CAST(accounts.credit_limit AS DECIMAL)) AS avg_credit_limit")
477477
.where(id: rails_core)
478478
.joins(:account)
479-
.group(:id, :type, :firm_id, :firm_name, :name, :client_of, :rating, :account_id, :description)
479+
.group(:id, :type, :firm_id, :firm_name, :name, :client_of, :rating, :account_id, :description, :status)
480480
.take!
481481

482482
# all the DependentFirm attributes should be present

0 commit comments

Comments
 (0)