I have a table which has a column called due_date. Datatype of this
mySQL is “Date”. Here is what I extracted from schema.rb
t.column “due_date”, :date
My fixture tasks.yml file has the following line
My test_task.rb has the following line
assert_equal “07/17/2006”, @task.due_date
When I run the test, it fails. It said
<“07/17/2006”> expected by was
Does anyone know why I cannot save the date field?
The format of the date passed from my page is “%m/%d/%Y”.