You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
URLs are stored, displayed, and linked to for Organizations and for individual Projects. They're entered into the database primarily in Admin by admin users, but also created through the public project submission form. It would be great to test their validity before rendering links (and ideally before saving to the database at all).
Ask
Add validation logic and test to verify stored :url on both the Organization and Project models.
To Do
Add validation logic and test to verify Organization#url
Add validaiton logic and test to verify Project#url
Additional Info
Sample test code from #226 (Measure and Improve Test Coverage), though this may change if you decide to validate in the models themselves.
it"returns an empty string if its url is invalid"doorganization.stub(url: "random thing")expect(organization.display_url).toeq(nil)end
The text was updated successfully, but these errors were encountered:
Description
URLs are stored, displayed, and linked to for Organizations and for individual Projects. They're entered into the database primarily in Admin by admin users, but also created through the public project submission form. It would be great to test their validity before rendering links (and ideally before saving to the database at all).
Ask
Add validation logic and test to verify stored
:url
on both theOrganization
andProject
models.To Do
Organization#url
Project#url
Additional Info
Sample test code from #226 (Measure and Improve Test Coverage), though this may change if you decide to validate in the models themselves.
The text was updated successfully, but these errors were encountered: