search for: assert_not_valid

Displaying 1 result from an estimated 1 matches for "assert_not_valid".

2006 Jun 13
3
Dynamic determination of class under test...
..., but I''d like to # to get the base case working first, do I need to use one of the # eval-type functions? end def assert_attribute_required(field) @non_inserted_fixture[field]=nil obj = @klass.new(@non_inserted_fixture) # <---- Now I need a Class object assert_not_valid obj assert obj.errors.invalid?(field) end Thank you. Eric