diff options
-rw-r--r-- | activerecord/test/cases/transaction_callbacks_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/transaction_callbacks_test.rb b/activerecord/test/cases/transaction_callbacks_test.rb index d72c4bf7c4..cc146f5574 100644 --- a/activerecord/test/cases/transaction_callbacks_test.rb +++ b/activerecord/test/cases/transaction_callbacks_test.rb @@ -272,7 +272,7 @@ class TransactionObserverCallbacksTest < ActiveRecord::TestCase topic = TopicWithObserverAttached.new topic.save! - assert topic.history, [:"TopicWithObserverAttachedObserver#after_commit"] + assert_equal topic.history, [:"TopicWithObserverAttachedObserver#after_commit"] end def test_after_rollback_called @@ -283,6 +283,6 @@ class TransactionObserverCallbacksTest < ActiveRecord::TestCase raise ActiveRecord::Rollback end - assert topic.history, [:"TopicWithObserverObserver#after_rollback"] + assert_equal topic.history, [:"TopicWithObserverObserver#after_rollback"] end end |