Created
May 16, 2010 20:49
-
-
Save jeroenvandijk/403156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ :json, :xml ].each do |format| | |
test "should clear errors when error is corrected for #{format}" do | |
set_mocks_to_invalid | |
invalid_user_using_format(format) do | |
assert !@person.valid? | |
@person.name = "Joe Shmoe" | |
@person.age = 56 | |
set_mocks_to_valid | |
assert @person.save | |
assert @person.valid? | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment