search for: testcreat

Displaying 1 result from an estimated 1 matches for "testcreat".

Did you mean: testcreate
2006 Jul 29
2
Cannot save Date field
...I extracted from schema.rb > t.column "due_date", :date My fixture tasks.yml file has the following line > due_date: 07/17/2006 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 testcreate(TaskTest) [test/unit/task_test.rb:16] <"07/17/2006"> expected by was <nil> Does anyone know why I cannot save the date field? The format of the date passed from my page is "%m/%d/%Y". Thanks. Arnold. -- Posted via http://www.ruby-forum.com/.