Forum: Ruby on Rails PostgreSQL unit test failure

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.
25e11a00a89683f7e01e425a1a6e305c?d=identicon&s=25 Wilson Bilkovich (Guest)
on 2005-12-18 01:38
(Received via mailing list)
PostgreSQL 8.1, Win32, Ruby 1.8.2 for Win32 native.
Rails 1.0 gems.
Starting on line 784 of the 'base_test.rb' file for ActiveRecord
1.13.2 is "test_default"
When I run the unit tests for ActiveRecord against Postgres,
everything passes except for this test.  It looks like modified_time
returns a default of 'nil', rather than Time.now, as it should.
Is this a known issue? I tried searching the fault tracker, but didn't
find anything.

Using native PostgreSQL
Loaded suite base_test
Started
...........................E....................................................
.......................
Finished in 1.875 seconds.

  1) Error:
test_default(BasicsTest):
NoMethodError: undefined method `strftime' for nil:NilClass
    base_test.rb:790:in `test_default'

103 tests, 256 assertions, 0 failures, 1 errors

Thanks,
--Wilson.
This topic is locked and can not be replied to.