class InheritedCallbacksTest

Public Instance Methods

setup() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 130
def setup
  @index    = Parent.new("index").dispatch
  @update   = Parent.new("update").dispatch
  @delete   = Parent.new("delete").dispatch
end
test_inherited_excluded() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 136
def test_inherited_excluded
  assert_equal %w(before1 index), @index.log
end
test_inherited_not_excluded() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 140
def test_inherited_not_excluded
  assert_equal %w(before1 before2 update after1), @update.log
end
test_partially_excluded() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 144
def test_partially_excluded
  assert_equal %w(delete after2 after1), @delete.log
end