mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Allow projects to have commas in their name.
This removes the validation that checks to make sure there is no comma in the name, and updates the tests to match.
This commit is contained in:
parent
5cbc0b26c8
commit
55bf457740
4 changed files with 9 additions and 8 deletions
|
|
@ -41,7 +41,9 @@ class ProjectXmlApiTest < ActionController::IntegrationTest
|
|||
|
||||
def test_fails_with_comma_in_name
|
||||
authenticated_post_xml_to_project_create "<request><project><name>foo,bar</name></project></request>"
|
||||
assert_response_and_body 404, "Name cannot contain the comma (',') character"
|
||||
assert_response :created
|
||||
project1 = Project.find_by_name("foo,bar")
|
||||
assert_not_nil project1, "expected project 'foo,bar' to be created"
|
||||
end
|
||||
|
||||
def test_creates_new_project
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue