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
Brian Durand a779b1a08b Fix logic on disabling commit callbacks
Commit callbacks are intentionally disabled when errors occur when calling the callback chain in order to reset the internal record state. However, the implicit order of operations on the logic for checking if callbacks are disabled is wrong. The result is that callbacks can be unexpectedly when errors occur in transactions.
2018-05-04 10:21:17 -07:00
..
adapters Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
arel Remove unused assert_like from Arel::Test 2018-05-02 00:00:19 +00:00
associations Allow a belonging to object to be created from a new record 2018-05-01 19:05:52 +02:00
attribute_methods Add AR::Base.base_class? predicate 2018-04-02 14:34:32 +03:00
coders
connection_adapters Relax assertions in connection config tests 2018-04-20 20:12:24 -04:00
connection_specification
fixture_set
migration More exercise test_remove_named_index 2018-05-02 04:16:15 +09:00
relation get_value needs to be a public method 2018-04-25 06:29:03 -04:00
scoping assert_called 2018-04-26 08:02:08 +02:00
tasks assert_called_with 2018-04-26 08:02:08 +02:00
type Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
validations Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
adapter_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
aggregations_test.rb Handle FrozenError if it is available 2017-12-20 11:52:01 +00:00
ar_schema_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
associations_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
attribute_decorators_test.rb
attribute_methods_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
attributes_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
autosave_association_test.rb assert_not_called 2018-04-26 08:02:08 +02:00
base_test.rb Fix typo in ActiveRecord test method name 2018-05-02 00:32:27 +07:00
batches_test.rb Deprecate update_attributes and update_attributes! 2018-02-17 13:58:54 -08:00
binary_test.rb
bind_parameter_test.rb
cache_key_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
calculations_test.rb Add delegate :pick, to: :all 2018-03-09 16:04:56 +09:00
callbacks_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
clone_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
collection_cache_key_test.rb Avoid passing unnecessary arguments to relation 2018-01-24 16:49:35 -05:00
column_alias_test.rb
column_definition_test.rb
comment_test.rb
connection_management_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
connection_pool_test.rb Remove unnecessary respond_to?(:report_on_exception) checking 2018-03-02 21:26:53 +09:00
core_test.rb Remove usage of strip_heredoc in the framework in favor of <<~ 2018-02-16 19:28:30 -05:00
counter_cache_test.rb
custom_locking_test.rb
database_statements_test.rb
date_test.rb
date_time_precision_test.rb Apply time column precision on assignment 2018-03-11 18:19:20 +00:00
date_time_test.rb
defaults_test.rb Suppress warning: BigDecimal.new is deprecated in activerecord 2017-12-13 21:29:06 +00:00
dirty_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
disconnected_test.rb
dup_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
enum_test.rb Remove extra whitespace 2018-01-25 23:32:59 -05:00
errors_test.rb
explain_subscriber_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
explain_test.rb Remove usage of strip_heredoc in the framework in favor of <<~ 2018-02-16 19:28:30 -05:00
finder_respond_to_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
finder_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
fixtures_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
forbidden_attributes_protection_test.rb
habtm_destroy_order_test.rb Use assert_empty and assert_not_empty 2018-01-25 23:32:59 -05:00
helper.rb Make Mocha setup explcitly Minitest-specific 2018-04-07 12:23:40 +01:00
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb Add AR::Base.base_class? predicate 2018-04-02 14:34:32 +03:00
instrumentation_test.rb
integration_test.rb
invalid_connection_test.rb
invertible_migration_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
json_attribute_test.rb Use :string instead of :text for JsonAttributeTest 2017-12-06 08:42:51 +09:00
json_serialization_test.rb Use respond_to test helpers 2018-01-25 23:32:58 -05:00
json_shared_test_cases.rb Deprecate update_attributes and update_attributes! 2018-02-17 13:58:54 -08:00
locking_test.rb Merge pull request #30956 from CJStadler/with-lock-changed-deprecation 2018-03-28 13:11:01 -04:00
log_subscriber_test.rb Log call site for all queries 2017-12-13 20:13:21 -05:00
migration_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
migrator_test.rb Restore test_migrations_status_with_schema_define_in_subdirectories 2018-01-19 11:51:07 +09:00
mixin_test.rb
modules_test.rb
multiparameter_attributes_test.rb Autocorrect refute RuboCop violations 2018-04-03 22:35:49 -04:00
multiple_db_test.rb
nested_attributes_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
nested_attributes_with_callbacks_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
null_relation_test.rb
numeric_data_test.rb Fix occurrences Fixnum|Bignum 2018-03-04 20:44:30 +02:00
persistence_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
pooled_connections_test.rb
primary_keys_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
query_cache_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
quoting_test.rb Fix failing QuotingTest#test_quoted_time_utc 2018-03-19 07:39:21 +02:00
readonly_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
reaper_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
reflection_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
relation_test.rb don't check for immutability when setting skip_preloading as it doesn't effect the arel and the arel may already be generated by fresh_when 2018-04-12 10:17:31 +10:00
relations_test.rb Merge pull request #31513 from fatkodima/relation-touch_all 2018-04-20 16:45:38 -04:00
reload_models_test.rb
reserved_word_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
result_test.rb
sanitize_test.rb Deprecate expand_hash_conditions_for_aggregates 2018-01-29 21:35:30 +09:00
schema_dumper_test.rb Autocorrect refute RuboCop violations 2018-04-03 22:35:49 -04:00
schema_loading_test.rb
secure_token_test.rb
serialization_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
serialized_attribute_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
statement_cache_test.rb Autocorrect refute RuboCop violations 2018-04-03 22:35:49 -04:00
store_test.rb Add custom prefix to ActiveRecord::Store accessors 2018-03-23 08:01:46 +07:00
suppressor_test.rb
test_case.rb require "active_support/test_case" is not supported since 53e877f7 2018-05-02 01:10:33 +09:00
test_fixtures_test.rb
time_precision_test.rb Apply time column precision on assignment 2018-03-11 18:19:20 +00:00
timestamp_test.rb Fix that touch(:updated_at) causes multiple assignments on the column 2018-03-23 10:05:54 +09:00
touch_later_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
transaction_callbacks_test.rb Fix logic on disabling commit callbacks 2018-05-04 10:21:17 -07:00
transaction_isolation_test.rb
transactions_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
type_test.rb
types_test.rb
unconnected_test.rb
unsafe_raw_sql_test.rb whitelist NULLS { FIRST | LAST } in order clauses 2018-03-06 02:27:16 +01:00
validations_repair_helper.rb
validations_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
view_test.rb
yaml_serialization_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00