Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

More strict #to_date validation #1

Open
pithyless opened this issue Jan 18, 2013 · 0 comments
Open

More strict #to_date validation #1

pithyless opened this issue Jan 18, 2013 · 0 comments

Comments

@pithyless
Copy link
Owner

ActiveSupport is not strict enough in parsing dates:

"2012-02-01foo".to_date should be error not Date.

context 'strict validation to_date' do
   specify { subject.parse('2012-02-01foo').should be_error("invalid date: '2012-02-01foo'") }
end
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant