Topic: Cucumber set date

I am trying to create a cucumber and set some default values to build my test so i have

     Given that I am a register user
      And I am loged in
      And the following schedule:
        | description | Test schedule |
        | start_date  | "2012-11-01"  |
        | end_date    | "2013-11-01"  |

but i am getting this error

undefined method `-' for :start_date:Symbol (ActiveRecord::RecordInvalid)

i have try different date formats but i still have this problem

Re: Cucumber set date

I bet you are trying to construct a Date object, that's why when parsing the value you get the error, - your values are Strings, so you should parse them yourself before.