Methods
T
Instance Public methods
test_around_object()
# File activesupport/test/callbacks_test.rb, line 626
def test_around_object
  u = UsingObjectAround.new
  u.save
  assert_equal ["around before", "yielded", "around after"], u.record
end
test_before_object()
# File activesupport/test/callbacks_test.rb, line 620
def test_before_object
  u = UsingObjectBefore.new
  u.save
  assert_equal ["before", "yielded"], u.record
end
test_block_result_is_returned()
# File activesupport/test/callbacks_test.rb, line 638
def test_block_result_is_returned
  u = CustomScopeObject.new
  assert_equal "CallbackResult", u.save
end
test_customized_object()
# File activesupport/test/callbacks_test.rb, line 632
def test_customized_object
  u = CustomScopeObject.new
  u.save
  assert_equal ["before save", "yielded"], u.record
end