class CallbacksTest::OneTimeCompileTest

Public Instance Methods

test_optimized_first_compile() click to toggle source
# File activesupport/test/callbacks_test.rb, line 156
def test_optimized_first_compile
  around = OneTimeCompile.new
  around.save
  assert_equal [
    [:before_save, :starts_true, :if],
    [:before_save, :starts_true, :unless]
  ], around.history
end