Flowdock
method

assert_valid

Importance_1
v2.2.1 - Show latest stable - 0 notes - Class: ActionController::Assertions::ModelAssertions
assert_valid(record) public

Ensures that the passed record is valid by Active Record standards and returns any error messages if it is not.

Examples

  # assert that a newly created record is valid
  model = Model.new
  assert_valid(model)
Show source
Register or log in to add new notes.