Skip to content

Commit 810de1c

Browse files
author
Aidan Haran
committed
Fixed regular expression
1 parent 5e298a7 commit 810de1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,6 +1605,8 @@ def test_insert_all_coerced
16051605

16061606
require "models/citation"
16071607
class EagerLoadingTooManyIdsTest < ActiveRecord::TestCase
1608+
fixtures :citations
1609+
16081610
# Original Rails test fails with SQL Server error message "The query processor ran out of internal resources and
16091611
# could not produce a query plan". This error goes away if you change database compatibility level to 110 (SQL 2012)
16101612
# (see https://www.mssqltips.com/sqlservertip/5279/sql-server-error-query-processor-ran-out-of-internal-resources-and-could-not-produce-a-query-plan/).
@@ -1619,7 +1621,7 @@ def test_eager_loading_too_many_ids_coerced
16191621

16201622
# Perform test
16211623
citation_count = Citation.count
1622-
assert_sql(/WHERE \(\[citations\]\.\[id\] IN \(0, 1/) do
1624+
assert_sql(/WHERE \[citations\]\.\[id\] IN \(0, 1/) do
16231625
assert_equal citation_count, Citation.eager_load(:citations).offset(0).size
16241626
end
16251627
end

0 commit comments

Comments
 (0)