Skip to content

Commit b64b4f6

Browse files
committed
Fix tests
1 parent 95b0c8e commit b64b4f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cases/optimizer_hints_test_sqlserver.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ class OptimizerHitsTestSQLServer < ActiveRecord::TestCase
1010
assert_queries_match(%r{\ASELECT .+ FROM .+ OPTION \(HASH GROUP\)\z}) do
1111
companies = Company.optimizer_hints("HASH GROUP")
1212
companies = companies.distinct.select("firm_id")
13-
assert_includes companies.explain, "| Hash Match | Aggregate |"
13+
assert_includes companies.explain.inspect, "| Hash Match | Aggregate |"
1414
end
1515

1616
assert_queries_match(%r{\ASELECT .+ FROM .+ OPTION \(ORDER GROUP\)\z}) do
1717
companies = Company.optimizer_hints("ORDER GROUP")
1818
companies = companies.distinct.select("firm_id")
19-
assert_includes companies.explain, "| Stream Aggregate | Aggregate |"
19+
assert_includes companies.explain.inspect, "| Stream Aggregate | Aggregate |"
2020
end
2121
end
2222

2323
it "apply multiple optimizations" do
2424
assert_queries_match(%r{\ASELECT .+ FROM .+ OPTION \(HASH GROUP, FAST 1\)\z}) do
2525
companies = Company.optimizer_hints("HASH GROUP", "FAST 1")
2626
companies = companies.distinct.select("firm_id")
27-
assert_includes companies.explain, "| Hash Match | Flow Distinct |"
27+
assert_includes companies.explain.inspect, "| Hash Match | Flow Distinct |"
2828
end
2929
end
3030

0 commit comments

Comments
 (0)