Forum: Ruby ActiveRecord on cygwin with sqlite3

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.
unknown (Guest)
on 2005-12-17 04:53
(Received via mailing list)
I've successfully installed sqlite3-ruby on cygwin (can run a simple
database fetch), but the activerecord test suite fails.  I'm running it
as described in the RUNNING_UNIT_TESTS doc:

$ ~/gems/activerecord-1.13.1
$ rake test_sqlite3
(in /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.1)
/usr/bin/ruby -Ilib:test:test/connections/native_sqlite3
"test/adapter_test.rb" ... "test/transactions_test.rb"
"test/unconnected_test.rb" "test/validations_test.rb"

../test/../lib/active_record/base.rb:244: undefined method
`cattr_accessor' for ActiveRecord::Base:Class (NoMethodError)
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
        from ./test/../lib/active_record.rb:37
        from ./test/abstract_unit.rb:5
        from ./test/aaa_create_tables_test.rb:2
rake aborted!
Command failed with status (1): [/usr/bin/ruby

I also noticed that among the targets, there is build/drop tables for
mysql/postgresql, but not sqlite.  Can it be related to the above

This topic is locked and can not be replied to.