1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases
Vitor Baptista e1e5f30057 Don't rely on Hash key's ordering
If we set encoding latin1 for a PostgreSQL database, it calls
PostgreSQLAdapter::create_database with options that have,
among other things:

  { 'encoding' => 'latin1' }

Then, we use reverse_merge(:encoding => "utf8") to setup the default
encoding. In the end, the hash looks like:

  { :encoding => 'utf8', 'encoding' => 'latin1' }

The call to options.symbolize_keys calls to_sym on each_key of this
Hash. It usually means that the encoding passed overwrites the default
utf8, but it's not guaranteed. So, we shouldn't rely on it.

The same was happening in ActiveRecord::ConnectionHandling.
2013-01-16 10:43:30 -03:00
..
adapters Don't rely on Hash key's ordering 2013-01-16 10:43:30 -03:00
associations Merge pull request #8568 from inossidabile/fix-in_clause_length 2013-01-11 01:34:43 -08:00
attribute_methods Remove ActiveRecord::Model 2012-10-26 15:51:02 +01:00
coders
connection_adapters Alias refute methods to assert_not and perfer assert_not on tests 2012-12-31 13:58:52 -03:00
connection_specification Standardize the use of current_adapter? 2013-01-01 19:18:34 -03:00
fixture_set
migration Standardize the use of current_adapter? 2013-01-01 19:18:34 -03:00
relation Fix syntax error and remove duplicated test 2013-01-08 20:00:51 -02:00
tasks Revert "Merge pull request #8942 from yahonda/tested_only_with_mysql" 2013-01-15 09:18:55 -02:00
validations Added support for validates_uniqueness_of in PostgreSQL array columns. Fixes: #8075. 2012-12-18 08:35:03 -02:00
adapter_test.rb Remove ActiveRecord::Model 2012-10-26 15:51:02 +01:00
aggregations_test.rb remove meaningless AS::FrozenObjectError 2013-01-02 10:04:58 +09:00
ar_schema_test.rb Needs to reset SchemaMigration first, or the tests fail in sqlite3 2013-01-07 07:37:23 +09:00
associations_test.rb Ensure that associations have a symbol argument. 2012-11-28 13:39:42 -08:00
attribute_methods_test.rb Remove not used require and some useless test comments 2012-11-17 23:00:16 -02:00
autosave_association_test.rb Rename update_attributes method to update, keep update_attributes as an alias 2013-01-03 11:51:21 -05:00
base_test.rb Remove unnecessary begin..rescue..end, use only rescue 2013-01-06 15:41:14 +09:00
batches_test.rb Remove extre count, preheat already happens during setup 2012-10-31 12:54:07 -02:00
binary_test.rb
bind_parameter_test.rb
calculations_test.rb fix PG typecasting errors 2012-12-28 19:11:02 -08:00
callbacks_test.rb Fix collisions with before and after validation callbacks. 2012-09-23 12:53:50 -06:00
clone_test.rb
column_alias_test.rb
column_definition_test.rb
column_test.rb Fix error when assigning NaN to an integer column 2013-01-06 16:09:40 -05:00
connection_management_test.rb
connection_pool_test.rb
counter_cache_test.rb
custom_locking_test.rb
database_statements_test.rb
date_time_test.rb Deprecate obsolete Time to DateTime fallback methods 2012-12-11 13:57:05 +00:00
defaults_test.rb Standardize the use of current_adapter? 2013-01-01 19:18:34 -03:00
deprecated_dynamic_methods_test.rb Merge branch 'master' of github.com:lifo/docrails 2013-01-09 01:04:15 +05:30
dirty_test.rb Rename update_attributes method to update, keep update_attributes as an alias 2013-01-03 11:51:21 -05:00
dup_test.rb
explain_subscriber_test.rb
explain_test.rb need to to_a the Relation to execute SQL here 2013-01-04 04:02:23 +09:00
finder_respond_to_test.rb
finder_test.rb CVE-2012-5664 options hashes should only be extracted if there are extra parameters 2013-01-02 13:44:06 -08:00
fixtures_test.rb
forbidden_attributes_protection_test.rb Added STI support to init and building associations 2012-11-29 05:50:34 +00:00
habtm_destroy_order_test.rb
helper.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb User assert_kind_of, invert assert_equal expectations 2012-11-29 09:59:35 -02:00
invalid_date_test.rb
invertible_migration_test.rb Fixes for PR [#8267] 2012-12-22 20:40:42 -05:00
json_serialization_test.rb
locking_test.rb Rename update_attributes method to update, keep update_attributes as an alias 2013-01-03 11:51:21 -05:00
log_subscriber_test.rb Ignore binds payload with nil column in AR log subscriber 2013-01-08 08:59:41 -02:00
migration_test.rb Fix failing test under sqlite3 2013-01-07 08:23:15 +09:00
migrator_test.rb Reset AR::Migration.verbose change to avoid depending on test run order 2013-01-08 09:12:51 +09:00
mixin_test.rb
modules_test.rb
multiparameter_attributes_test.rb
multiple_db_test.rb Remove ActiveRecord::Model 2012-10-26 15:51:02 +01:00
named_scope_test.rb
nested_attributes_test.rb Namespace HashWithIndifferentAccess 2013-01-07 07:37:23 +09:00
persistence_test.rb Change duplicated test name 2013-01-03 21:26:38 -03:00
pooled_connections_test.rb Remove ActiveRecord::Model 2012-10-26 15:51:02 +01:00
primary_keys_test.rb Standardize the use of current_adapter? 2013-01-01 19:18:34 -03:00
query_cache_test.rb Standardize the use of current_adapter? 2013-01-01 19:18:34 -03:00
quoting_test.rb
readonly_test.rb
reaper_test.rb
reflection_test.rb
relation_scoping_test.rb deprecate assert_blank and assert_present. 2013-01-05 18:04:52 +01:00
relation_test.rb Use separate Relation subclasses for each AR class 2012-11-30 14:06:48 +00:00
relations_test.rb deprecate assert_blank and assert_present. 2013-01-05 18:04:52 +01:00
reload_models_test.rb
sanitize_test.rb
schema_dumper_test.rb Support for PostgreSQL's ltree data type. 2013-01-04 21:22:34 +00:00
serialization_test.rb include_root_in_json allows inheritance. 2012-10-31 00:08:36 +09:00
serialized_attribute_test.rb Serialized attribute can be serialized in an integer column 2012-12-21 14:41:13 -03:00
store_test.rb Namespace HashWithIndifferentAccess 2013-01-07 07:37:23 +09:00
test_case.rb
timestamp_test.rb
transaction_callbacks_test.rb validate :on option on after_commit and after_rollback callbacks 2012-12-26 11:37:37 +01:00
transaction_isolation_test.rb Rename update_attributes method to update, keep update_attributes as an alias 2013-01-03 11:51:21 -05:00
transactions_test.rb Rename update_attributes method to update, keep update_attributes as an alias 2013-01-03 11:51:21 -05:00
unconnected_test.rb Remove ActiveRecord::Model 2012-10-26 15:51:02 +01:00
validations_repair_helper.rb
validations_test.rb
xml_serialization_test.rb
yaml_serialization_test.rb