rails/activerecord/test/cases/associations
Yasuo Honda 4dd3b2bd9a Use assert_queries(0) instead of assert_no_queries to ignore metadata queries
Fix #35665

```ruby
$ ARCONN=mysql2 bin/test test/cases/scoping/named_scoping_test.rb test/cases/tasks/database_tasks_test.rb test/cases/associations/cascaded_eager_loading_test.rb test/cases/associations/eager_singularization_test.rb -n "/^(?:NamedScopingTest#(?:test_many_should_not_fire_query_if_scope_loaded)|ActiveRecord::DatabaseTasksDumpSchemaCacheTest#(?:test_dump_schema_cache)|CascadedEagerLoadingTest#(?:test_eager_association_loading_with_has_many_sti_and_subclasses)|EagerSingularizationTest#(?:test_eager_no_extra_singularization_has_many_through_belongs_to))$/" --seed 16818
Using mysql2
Run options: -n "/^(?:NamedScopingTest#(?:test_many_should_not_fire_query_if_scope_loaded)|ActiveRecord::DatabaseTasksDumpSchemaCacheTest#(?:test_dump_schema_cache)|CascadedEagerLoadingTest#(?:test_eager_association_loading_with_has_many_sti_and_subclasses)|EagerSingularizationTest#(?:test_eager_no_extra_singularization_has_many_through_belongs_to))$/" --seed 16818

...F

Failure:
CascadedEagerLoadingTest#test_eager_association_loading_with_has_many_sti_and_subclasses [/home/yahonda/git/rails/activerecord/test/cases/associations/cascaded_eager_loading_test.rb:124]:
1 instead of 0 queries were executed.
Queries:
SHOW FULL FIELDS FROM `topics`.
Expected: 0
  Actual: 1

bin/test test/cases/associations/cascaded_eager_loading_test.rb:119

Finished in 6.894609s, 0.5802 runs/s, 1.0153 assertions/s.
4 runs, 7 assertions, 1 failures, 0 errors, 0 skips
$
```
2019-03-26 02:51:03 +00:00
..
belongs_to_associations_test.rb Fix pluck and select with custom attributes 2019-02-13 02:47:46 +09:00
bidirectional_destroy_dependencies_test.rb
callbacks_test.rb
cascaded_eager_loading_test.rb Use assert_queries(0) instead of assert_no_queries to ignore metadata queries 2019-03-26 02:51:03 +00:00
eager_load_includes_full_sti_class_test.rb
eager_load_nested_include_test.rb Use assert_no_queries not to ignore BEGIN/COMMIT queries 2018-10-05 04:11:13 +09:00
eager_singularization_test.rb
eager_test.rb Remove unnecessary current_adapter?(:OracleAdapter) for index length 2019-03-03 13:48:23 +00:00
extension_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
has_and_belongs_to_many_associations_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
has_many_associations_test.rb Merge pull request #35247 from bogdan/fix-source-reflection-reset-code 2019-02-20 21:24:38 +09:00
has_many_through_associations_test.rb Fix test that was broken by adding a default scope to an existing model 2019-02-26 21:58:42 -05:00
has_one_associations_test.rb Address test_belongs_to_does_not_use_order_by failure due to checking order by for metadata queries 2019-02-08 00:33:16 +00:00
has_one_through_associations_test.rb More exercise singular association query 2018-11-28 03:34:20 +09:00
inner_join_association_test.rb
inverse_associations_test.rb Revert "Merge pull request #33729 from kddeisz/plural-automatic-inverse" 2019-02-01 01:34:49 +09:00
join_model_test.rb
left_outer_join_association_test.rb
nested_through_associations_test.rb Fix reset of the source association when through association is loaded 2019-02-20 13:48:51 +02:00
required_test.rb Enable Style/RedundantBegin cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00