class CallbacksTest::DoubleYieldTest

Public Instance Methods

test_double_save() click to toggle source
# File activesupport/test/callbacks_test.rb, line 438
def test_double_save
  double = DoubleYieldModel.new
  double.save
  assert_equal [
    "wrap_outer",
    "first_trouble",
    "wrap_inner",
    "running",
    "unwrap_inner",
    "second_trouble",
    "wrap_inner",
    "running",
    "unwrap_inner",
    "third_trouble",
    "unwrap_outer",
  ], double.history
end