calebhearth / formulaic

Simplify form filling with Capybara
MIT License
552 stars 29 forks source link

When a date is named "date" formulaic can not find it on the page #26

Closed jamesBrennan closed 10 years ago

jamesBrennan commented 10 years ago

I ran into this in my own code and then forked and modified the specs here to confirm.

Here's my commit that causes the failing test: https://github.com/jamesBrennan/formulaic/commit/a79df327a8f6d70ded4f21e8d047ead2618244c3

I don't have time to look at a fix for this right now. If I do start to work on it I'll update this issue.

calebhearth commented 10 years ago

Cool, I'll take a look when I get a chance. Nothing comes to mind as an obvious problem.

calebhearth commented 10 years ago

I'm able to make your branch pass by also changing the translation:

@@ -25,7 +25,7 @@ module SpecHelper
               avatar: Avatar
               awesome: Are you awesome?
               bio: Biography
-              date_of_birth: Date of birth
+              date: Date
               email: Email
               name: Display name
               new:

I'm closing this, but feel free to let me know if that doesn't solve it for you.