Forum: Ruby on Rails First unit test fails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Lindsay B. (Guest)
on 2006-02-15 23:02
I've just started working through 'Agile' chapter 12
'Testing'. I've followed the steps carefully, setting up a fixture and
unit test to check the creation of an order. When I run the test I get
the following:

Loaded suite test/unit/order_test
Finished in 0.108008 seconds.

  1) Failure:
test_create(OrderTest) [test/unit/order_test.rb:17]:
<"Wed Feb 15 12:56:26 GMT 2006"> expected but was
<Wed Feb 15 12:56:26 GMT 2006>.

1 tests, 6 assertions, 1 failures, 0 errors

My fixture populates the mySQL order table with: '2006-02-15 12:56:26'

Is there some kind of internal/external date mapping in the RoR Unit
framework that I'm not taking into account?
This topic is locked and can not be replied to.