lml / quadbase

Quadbase.org - Question Banking Made Easy
quadbase.org
Other
18 stars 11 forks source link

Tests sometimes fail with invalid username/email #97

Closed Dantemss closed 12 years ago

Dantemss commented 12 years ago

Figure out when this happens. Can happen on pretty much any test. If this happens, ALL tests for that rake session will fail.

Running rake again fixes the problem. A possible way to figure this out is to view the last user created on test.log immediately after this happens.

Dantemss commented 12 years ago

Update: Found at least one case where this occurs: Sometimes Faker generates the last name D'Amore, which gives us a username and an email containing d''amore, both of which are invalid.

jpslav commented 12 years ago

Might be the factory creating an existing user name

On May 14, 2012, at 5:01 PM, Dantemssreply@reply.github.com wrote:

Figure out when this happens. Can happen on pretty much any test. If this happens, ALL tests for that rake session will fail.

Running rake again fixes the problem. A possible way to figure this out is to view the last user created on test.log immediately after this happens.


Reply to this email directly or view it on GitHub: https://github.com/lml/quadbase/issues/97

Dantemss commented 12 years ago

New occurrence: Faker generated last name O'Keefe, which is invalid (converted to O''Keefe in SQL)

Maybe just need to strip ' symbol from username and email?