class CallbacksTest::CallbackTerminatorTest
Public Instance Methods
test_block_never_called_if_terminated()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 839 def test_block_never_called_if_terminated obj = CallbackTerminator.new obj.save assert !obj.saved end
test_termination_invokes_hook()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 833 def test_termination_invokes_hook terminator = CallbackTerminator.new terminator.save assert_equal :second, terminator.halted end
test_termination_skips_following_before_and_around_callbacks()
click to toggle source
# File activesupport/test/callbacks_test.rb, line 827 def test_termination_skips_following_before_and_around_callbacks terminator = CallbackTerminator.new terminator.save assert_equal ["first", "second", "third", "first"], terminator.history end