rails--rails/activerecord/test/cases
Prathamesh Sonpatki 8b77d8e387
Fix prepared statements disabled test again
- Due to `assert_nothing_raised` this test was not really testing
  anything.
- So updated it to assert that the query gives expected result.
- Also in general we can use `connection.unprepared_statement` for
  testing queries w/o prepared statements but it can't be used in this
  case. This test cases was added because when prepared_statements
  config is set to false, then DetermineIfPreparableVisitor module
  does not extended by Arel visitor resulting into an error. Ref: https://github.com/rails/rails/pull/22748.
- Because DetermineIfPreparableVisitor module does not get added to the
  visitor chain only if prepared_statements is false while **setting up
  connection**, not when `unprepared_statement` is used.
- I have also added an assertion for making sure that prepared_config
  is set to false from the start, so that nobody accidentally removes
  the connection setup using `arunit_without_prepared_statements` and
  replaces it with stubs or unprepared_statement.
2016-11-20 14:20:35 +05:30
..
adapters Fix prepared statements disabled test again 2016-11-20 14:20:35 +05:30
associations Respect new records for `CollectionProxy#uniq` 2016-11-13 06:19:28 +09:00
attribute_methods Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
coders applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
connection_adapters Move `test_quoting_classes` into `test/cases/quoting_test.rb` 2016-10-29 16:39:24 +09:00
connection_specification Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
fixture_set Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
migration Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
relation Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
scoping Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
tasks Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
type Merge pull request #24571 from raimo/patch-1 2016-10-04 17:37:04 -04:00
validations Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
adapter_test.rb Merge pull request #26688 from kamipo/remove_respond_to_indexes 2016-10-28 13:46:06 +02:00
aggregations_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
ar_schema_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
associations_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
attribute_decorators_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
attribute_methods_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
attribute_set_test.rb remove redundant curlies from hash arguments 2016-08-06 19:44:11 +02:00
attribute_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
attributes_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
autosave_association_test.rb Allow `autosave: true` to be used with inverse of 2016-11-01 13:28:56 -04:00
base_test.rb allow ActiveRecord::Core#slice to use array arg 2016-10-31 11:14:45 -04:00
batches_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
binary_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
bind_parameter_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
cache_key_test.rb
calculations_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
callbacks_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
clone_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
collection_cache_key_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
column_alias_test.rb revises most Lint/EndAlignment offenses 2016-08-07 23:41:00 +02:00
column_definition_test.rb Remove text default treated as an empty string in non-strict mode 2016-08-19 12:11:26 +09:00
comment_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
connection_management_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
connection_pool_test.rb Add ActiveRecord::Base.connection_pool.stat 2016-11-09 01:10:16 +08:00
core_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
counter_cache_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
custom_locking_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
database_statements_test.rb Merge pull request #26002 from kamipo/sql_for_insert_should_be_called_inside_exec_insert 2016-08-17 00:12:31 -03:00
date_test.rb remove redundant curlies from hash arguments 2016-08-06 19:44:11 +02:00
date_time_precision_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
date_time_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
defaults_test.rb Remove text default treated as an empty string in non-strict mode 2016-08-19 12:11:26 +09:00
dirty_test.rb Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks 2016-11-01 13:16:33 -04:00
disconnected_test.rb
dup_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
enum_test.rb Add tests for ActiveRecord::Enum#enum when suffix specified 2016-09-12 08:52:02 +09:00
errors_test.rb
explain_subscriber_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
explain_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
finder_respond_to_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
finder_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
fixtures_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
forbidden_attributes_protection_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
habtm_destroy_order_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
helper.rb Consolidate `ActiveRecord::TestCase` and `ActiveSupport::TestCase` in AR test cases 2016-08-14 04:34:35 +09:00
hot_compatibility_test.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
i18n_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
inheritance_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
integration_test.rb Fix issue with `cache_key` when the named timestamp column has value nil 2016-09-07 23:11:56 +05:30
invalid_connection_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
invertible_migration_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
json_serialization_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
locking_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
log_subscriber_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
migration_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
migrator_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
mixin_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
modules_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
multiparameter_attributes_test.rb fix datatime error 2016-11-01 18:17:26 -07:00
multiple_db_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
nested_attributes_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
nested_attributes_with_callbacks_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
persistence_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
pooled_connections_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
primary_keys_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
query_cache_test.rb Configure query caching (per thread) on the connection pool 2016-11-06 02:19:57 -05:00
quoting_test.rb Move `test_quoting_classes` into `test/cases/quoting_test.rb` 2016-10-29 16:39:24 +09:00
readonly_test.rb Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines 2016-08-07 17:50:59 +09:00
reaper_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
reflection_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
relation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
relations_test.rb Respect new records for `CollectionProxy#uniq` 2016-11-13 06:19:28 +09:00
reload_models_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
result_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
sanitize_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
schema_dumper_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
schema_loading_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
secure_token_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
serialization_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
serialized_attribute_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
statement_cache_test.rb Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines 2016-08-07 17:50:59 +09:00
store_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
suppressor_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
test_case.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
test_fixtures_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
time_precision_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
timestamp_test.rb Avoid to allow unused splat args for `t.timestamps` in `create_table` 2016-08-14 05:05:34 +09:00
touch_later_test.rb Merge pull request #26183 from Shopify/fix-no-touching-touch-later 2016-08-16 12:57:55 -03:00
transaction_callbacks_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
transaction_isolation_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
transactions_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
type_test.rb
types_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb Creating a new Topic class instead of class_eval for the existing one 2016-08-11 15:38:40 +00:00
view_test.rb Quote table name properly 2016-10-14 05:06:06 +09:00
yaml_serialization_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00