Methods
T
Instance Public methods
test_before_validation_and_after_validation_callbacks_should_be_called()
# File activemodel/test/cases/validations/callbacks_test.rb, line 45
def test_before_validation_and_after_validation_callbacks_should_be_called
  d = DogWithMethodCallbacks.new
  d.valid?
  assert_equal ['before_validation_marker', 'after_validation_marker'], d.history
end
test_before_validation_and_after_validation_callbacks_should_be_called_in_declared_order()
# File activemodel/test/cases/validations/callbacks_test.rb, line 57
def test_before_validation_and_after_validation_callbacks_should_be_called_in_declared_order
  d = DogWithTwoValidators.new
  d.valid?
  assert_equal ['before_validation_marker1', 'before_validation_marker2'], d.history
end
test_before_validation_and_after_validation_callbacks_should_be_called_with_proc()
# File activemodel/test/cases/validations/callbacks_test.rb, line 51
def test_before_validation_and_after_validation_callbacks_should_be_called_with_proc
  d = DogValidtorsAreProc.new
  d.valid?
  assert_equal ['before_validation_marker', 'after_validation_marker'], d.history
end
test_further_callbacks_should_not_be_called_if_before_validation_returns_false()
# File activemodel/test/cases/validations/callbacks_test.rb, line 63
def test_further_callbacks_should_not_be_called_if_before_validation_returns_false
  d = DogValidatorReturningFalse.new
  output = d.valid?
  assert_equal [], d.history
  assert_equal false, output
end
test_validation_test_should_be_done()
# File activemodel/test/cases/validations/callbacks_test.rb, line 70
def test_validation_test_should_be_done
  d = DogWithMissingName.new
  output = d.valid?
  assert_equal ['before_validation_marker'], d.history
  assert_equal false, output
end