class InheritedCallbacksTest2

Public Instance Methods

setup() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 150
def setup
  @update1 = Child.new("update", :open).dispatch
  @update2 = Child.new("update", :closed).dispatch
end
test_crazy_mix_off() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 159
def test_crazy_mix_off
  assert_equal %w(before1 before2 update after2 after1), @update2.log
end
test_crazy_mix_on() click to toggle source
# File activesupport/test/callback_inheritance_test.rb, line 155
def test_crazy_mix_on
  assert_equal %w(before1 update after2 after1), @update1.log
end