molten-trunk/molten5_withgrid/test/test_helper.rb
def assert_valid(object,*attributes)
    object.valid?
    attributes.each do |a|
      assert(!object.errors.invalid?(a.to_s),
             "Attribute [ #{a.to_s} ] is invalid [ #{object.errors.on(a.to_s)} ]")
    end
  end
# Tests to ensure that the attributes provided ARE VALID for the object.
Tests to ensure that the attributes provided ARE VALID for the object.
Tests to ensure that the attributes provided ARE VALID for the object .
def assert_valid(object,*attributes)
    object.valid?
    attributes.each do |a|
      assert(!object.errors.invalid?(a.to_s),
             "Attribute [ #{a.to_s} ] is invalid [ #{object.errors.on(a.to_s)} ]")
    end
  end
def assert_valid ( object , * attributes ) object . valid? attributes . each do | a | assert ( ! object . errors . invalid? ( a . to_s ) , "Attribute [ #{a.to_s} ] is invalid [ #{object.errors.on(a.to_s)} ]" ) end end
Tests to ensure that the attributes provided ARE VALID for the object.
Tests to ensure that the attributes provided ARE VALID for the object .
object
attributes