First I have to write custom labels and field names, because the helper
doesn't write the model container "assignment[date]" etc and the label
doesn't match up with the field.
Once I've got the field names recognised, I can't get input to work. My
feature scenario looks something like:
...
And I fill in "Handout" with "2009-05-21 00:00:00"
...
And I should see "2009-05-21 00:00:00"
...
Unfortunately, the data isn't getting into the database because the
output doesn't include any of the passed information. I've also tried
with just Y/M/D, full unix timestamp, display format (May 21, 2009)
Any tips on getting this going greatly appreciated as it's making my
nice green tests fail when I know they work manually.
Thanks
~Matt
Thanks for the reply Tom, I've tried adding that but it doesn't appear
to do anything. What is the expected result of adding that into my
scenario? I don't know if it's relevant but I'm not developing on my
desktop, I'm on a remote server.
Thanks
~Matt
Haha, yes that is very relevant. Save and open page will create an html in your projects tmp directory, you could download it and view it, or I suppose you could use links :)
Tim
On May 23, 2009 10:50 AM, "Matt Harrison" <iwasinn...@genestate.com> wrote:Tom Hoen wrote: > Matt - if you haven't done so already, you may want to use cucumber's > "save_and...
Thanks for the reply Tom, I've tried adding that but it doesn't appear
to do anything. What is the expected result of adding that into my
scenario? I don't know if it's relevant but I'm not developing on my
desktop, I'm on a remote server.
Thanks
~Matt
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...
Thanks, I've checked the generated page and it seems it's storing a null
value. At least, nothing is being outputted for those two fields.
So how are you guys using a calendar_date_select field from inside a
cucumber/webrat scenario?
Ta
~M
Treat it just like a text field :)
On May 23, 2009 12:48 PM, "Matt Harrison" <iwasinn...@genestate.com> wrote:Tim Harper wrote: > Haha, yes that is very relevant. Save and open page will create an html > in y...
Thanks, I've checked the generated page and it seems it's storing a null
value. At least, nothing is being outputted for those two fields.
So how are you guys using a calendar_date_select field from inside a
cucumber/webrat scenario?
Ta
~M
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are sub...
Well that's what I originally thought, but no matter what I tell webrat
to fill in, nothing seems to get written to the db. At least, nothing is
output when the record is viewed.
I know it's looking at the right field because I've already wrestled
with that problem and solved it. The problem is, because the db data for
the tests is being cleared, I can't go in and see if the fields are
indeed null.
I'm just about out of ideas so I might have to leave the calendar stuff
out of testing :(
Thanks
~M