Displaying 1 result from an estimated 1 matches for "test_invalid_service".
2006 Feb 10
1
Bizarre ActiveRecord::Errors/validation problem
...status
end
The unit tests:
class ServiceTest < Test::Unit::TestCase
def test_new_service
@service = Service.new
@service.name = ''www''
@service.port = 80
@service.status = ''Unknown''
assert @service.save
end
def test_invalid_service
@service = Service.new
assert !@service.save
assert_equal "can''t be blank", @service.errors[''name'']
assert_equal "can''t be blank", @service.errors[''status'']
assert_equal "can'&...