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
Andrew White b5af751508 Update DateTime#change to support usec and nsec
Adding support for these options now allows us to update the
`DateTime#end_of` methods to match the equivalent `Time#end_of`
methods, e.g:

    datetime = DateTime.now.end_of_day
    datetime.nsec == 999999999 # => true

Fixes #21424.
2017-03-02 06:02:41 +00:00
..
adapters Use max_identifier_length for index_name_length in PostgreSQL adapter 2017-02-27 06:27:49 +09:00
associations Merge pull request #28210 from cefigueiredo/improve_required_test 2017-02-28 18:12:48 -05:00
attribute_methods class Foo < Struct.new(:x) creates an extra unneeded anonymous class 2017-01-13 15:13:47 +09:00
coders Indicate action that failed in YamlColumn 2017-02-05 11:54:40 -05:00
connection_adapters Allow 3-level DB configs to group connections by environment 2017-02-22 05:11:45 +10:30
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 create_join_table should respect references column type 2017-02-28 16:31:22 +09:00
relation Delegate to_sentence and to_fomatted_s to records 2017-02-04 23:20:09 +09:00
scoping Order array contents to match Relation#first 2017-02-25 12:29:28 +10:30
tasks sqlite3_mem tests are broken since 79887593c1 2017-01-10 19:39:11 +09:00
type Moved database-specific ActiveModel types into ActiveRecord 2016-10-14 20:21:20 +01:00
validations Fix a tests of AR::ValueTooLong when using OracleAdapter 2017-02-14 11:38:57 +09:00
adapter_test.rb primary_key and references columns should be identical type 2017-02-07 14:21:18 +09:00
aggregations_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
ar_schema_test.rb Deprecate supports_migrations? on connection adapters 2017-02-27 03:14:33 +09:00
associations_test.rb Merge pull request #25877 from kamipo/delegate_to_scope_rather_than_merge 2017-02-21 05:24:18 +10:30
attribute_decorators_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
attribute_methods_test.rb Fix define_attribute_method with Symbol in AR 2017-02-21 20:33:32 +09:00
attribute_set_test.rb "Use assert_nil if expecting nil. This will fail in minitest 6." 2016-12-25 02:29:52 +09:00
attribute_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
attributes_test.rb Make the second argument to attribute optional 2016-11-30 12:47:31 -05:00
autosave_association_test.rb self. is not needed when calling its own instance method 2017-01-05 19:58:52 +09:00
base_test.rb primary_key and references columns should be identical type 2017-02-07 14:21:18 +09: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 Revert "Merge pull request #21233 from mtsmfm/disable-referential-integrity-without-superuser-privileges" 2017-01-03 22:11:16 -05:00
cache_key_test.rb
calculations_test.rb Whitelist adapters that support aliases in HAVING clause 2017-03-01 11:36:54 +00:00
callbacks_test.rb Remove deprecated behavior that halts callbacks when the return is false 2017-02-07 12:19:37 -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 Refactor ColumnDefinition to contain options hash 2017-02-09 00:30:29 -07:00
comment_test.rb Omit redundant using: :btree for schema dumping 2017-02-13 23:12:04 +09:00
connection_management_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
connection_pool_test.rb Refactor connection_pool_test 2017-02-26 10:36:30 -06:00
core_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
counter_cache_test.rb Add test for update_counters with empty touch 2017-01-15 01:06:46 +00:00
custom_locking_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
database_statements_test.rb Remove deprecated #insert_sql, #update_sql, and #delete_sql 2016-12-30 21:14:59 +09:00
date_test.rb remove redundant curlies from hash arguments 2016-08-06 19:44:11 +02:00
date_time_precision_test.rb Allow SQLServerAdapter to opt into a few tests. 2017-01-16 08:58:04 -05:00
date_time_test.rb Update DateTime#change to support usec and nsec 2017-03-02 06:02:41 +00:00
defaults_test.rb Correctly dump native timestamp types for MySQL 2017-02-23 12:51:49 +09:00
dirty_test.rb Deprecate supports_migrations? on connection adapters 2017-02-27 03:14:33 +09: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 Raise when a through association has an ambiguous reflection name 2016-12-29 17:53:04 -05:00
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 Fix find_nth with limit_value 2017-02-26 21:20:39 +09:00
fixtures_test.rb Deprecate supports_migrations? on connection adapters 2017-02-27 03:14:33 +09: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 Remove unused require 2017-02-12 19:38:49 -07: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 Cache results of computing model type 2017-01-03 19:02:38 +05:00
integration_test.rb "Use assert_nil if expecting nil. This will fail in minitest 6." 2016-12-25 02:29:52 +09:00
invalid_connection_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
invertible_migration_test.rb #tables and #table_exists? and returns only tables and not views 2016-12-29 17:53:04 -05:00
json_serialization_test.rb Allow ActiveRecord::Base.as_json to accept a frozen Hash 2017-02-08 12:03:59 -05:00
locking_test.rb Deprecate locking of dirty records 2017-02-07 16:29:16 +01:00
log_subscriber_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
migration_test.rb Deprecate supports_migrations? on connection adapters 2017-02-27 03:14:33 +09:00
migrator_test.rb correctly check error message 2017-01-25 09:58:15 +09: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 Reduce string objects by using \ instead of + or << for concatenating strings 2017-01-12 17:45:37 +09:00
persistence_test.rb Add the touch option to ActiveRecord#increment! and decrement! 2017-01-14 01:00:33 +09:00
pooled_connections_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
primary_keys_test.rb Correctly dump native timestamp types for MySQL 2017-02-23 12:51:49 +09:00
query_cache_test.rb Ensure test threads share a DB connection 2017-02-20 16:31:24 -05:00
quoting_test.rb Deprecate using #quoted_id in quoting 2017-02-24 06:56:06 +09:00
readonly_test.rb Revert "Merge pull request #21233 from mtsmfm/disable-referential-integrity-without-superuser-privileges" 2017-01-03 22:11:16 -05:00
reaper_test.rb applies new string literal convention in activerecord/test 2016-08-06 18:26:53 +02:00
reflection_test.rb Fix collection_singular_ids= bug 2017-02-02 22:26:49 -05:00
relation_test.rb class Foo < Struct.new(:x) creates an extra unneeded anonymous class 2017-01-13 15:13:47 +09:00
relations_test.rb Merge pull request #27122 from kamipo/fix_unscope_with_subquery 2017-02-13 01:35:28 -03: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 Deprecate using #quoted_id in quoting 2017-02-24 06:56:06 +09:00
schema_dumper_test.rb Merge pull request #25296 from kamipo/use_inspect_for_type_cast_for_schema 2017-02-28 18:19:33 -05:00
schema_loading_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
secure_token_test.rb assert_equal takes expectation first 2016-12-26 11:04:56 +09:00
serialization_test.rb modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
serialized_attribute_test.rb Indicate action that failed in YamlColumn 2017-02-05 11:54:40 -05:00
statement_cache_test.rb Refactor test_find_by_does_not_use_statement_cache_if_table_name_is_changed 2017-02-13 19:28:37 +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 Remove deprecated #use_transactional_fixtures configuration 2016-12-29 17:53:04 -05:00
time_precision_test.rb Allow SQLServerAdapter to opt into a few tests. 2017-01-16 08:58:04 -05:00
timestamp_test.rb self. is not needed when calling its own instance method 2017-01-05 19:58:52 +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 Prioritize checking :on actions before :if for transaction callbacks 2017-02-21 14:03:55 +08:00
transaction_isolation_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
transactions_test.rb Remove deprecated behavior that halts callbacks when the return is false 2017-02-07 12:19:37 -03: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 Allow SQLServerAdapter to opt into a few tests. 2017-01-16 08:58:04 -05:00
yaml_serialization_test.rb Revert "Merge pull request #21233 from mtsmfm/disable-referential-integrity-without-superuser-privileges" 2017-01-03 22:11:16 -05:00