Forum: Ruby on Rails First unit test fails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ae03102311939454d2b7f1ca3139fd97?d=identicon&s=25 Lindsay Boyd (Guest)
on 2006-02-15 22: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
Started
F
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
Test
framework that I'm not taking into account?
This topic is locked and can not be replied to.