molten-trunk/molten5_withgrid/test/test_helper.rb
def assert_invalid(object,*attributes)
    object.valid?
    attributes.each do |a|
      assert(object.errors.invalid?(a.to_s),
             "Attribute [ #{a.to_s} ] is NOT invalid")
    end
  end
# Add more helper methods to be used by all tests here...
# Tests to ensure that the attributes provided ARE NOT VALID for the object.
Add more helper methods to be used by all tests here
Tests to ensure that the attributes provided ARE NOT VALID for the object.
Add more helper methods to be used by all tests here Tests to ensure that the attributes provided ARE NOT VALID for the object .
def assert_invalid(object,*attributes)
    object.valid?
    attributes.each do |a|
      assert(object.errors.invalid?(a.to_s),
             "Attribute [ #{a.to_s} ] is NOT invalid")
    end
  end
def assert_invalid ( object , * attributes ) object . valid? attributes . each do | a | assert ( object . errors . invalid? ( a . to_s ) , "Attribute [ #{a.to_s} ] is NOT invalid" ) end end
Add more helper methods to be used by all tests here...
Tests to ensure that the attributes provided ARE NOT VALID for the object.
Add more helper methods to be used by all tests here ... Tests to ensure that the attributes provided ARE NOT VALID for the object .
object
attributes