Skip to content

Commit 3f03e48

Browse files
committed
Fixed option flag in assert_queries_count calls
1 parent f58963b commit 3f03e48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/cases/coerced_tests.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def test_update_date_time_attributes_with_default_timezone_local
234234
coerce_tests! %r{an empty transaction does not raise if preventing writes}
235235
test "an empty transaction does not raise if preventing writes coerced" do
236236
ActiveRecord::Base.while_preventing_writes do
237-
assert_queries_count(1, ignore_none: true) do
237+
assert_queries_count(1, include_schema: true) do
238238
Bird.transaction do
239239
ActiveRecord::Base.lease_connection.materialize_transactions
240240
end
@@ -1324,7 +1324,7 @@ def test_create_without_primary_key_no_extra_query_coerced
13241324
self.table_name = "dashboards"
13251325
end
13261326
klass.create! # warmup schema cache
1327-
assert_queries_count(2, ignore_none: true) { klass.create! }
1327+
assert_queries_count(2, include_schema: true) { klass.create! }
13281328
end
13291329
end
13301330

@@ -1354,7 +1354,7 @@ def test_query_cached_even_when_types_are_reset_coerced
13541354
Task.initialize_find_by_cache
13551355
Task.define_attribute_methods
13561356

1357-
assert_queries_count(1, ignore_none: true) do
1357+
assert_queries_count(1, include_schema: true) do
13581358
Task.find(1)
13591359
end
13601360

@@ -2377,7 +2377,7 @@ class BasePreventWritesTest < ActiveRecord::TestCase
23772377
coerce_tests! %r{an empty transaction does not raise if preventing writes}
23782378
test "an empty transaction does not raise if preventing writes coerced" do
23792379
ActiveRecord::Base.while_preventing_writes do
2380-
assert_queries_count(1, ignore_none: true) do
2380+
assert_queries_count(1, include_schema: true) do
23812381
Bird.transaction do
23822382
ActiveRecord::Base.lease_connection.materialize_transactions
23832383
end

0 commit comments

Comments
 (0)