Forum: Ruby on Rails Informix adapter testing

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.
5a601582df3b42b65a5e8353fc9305da?d=identicon&s=25 =?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?= (Guest)
on 2005-12-18 08:57
(Received via mailing list)
I've just written an ActiveRecord adapter for Informix. It lacks a
pair of features that I will add later, but it works for me.

I found this on the web:
http://wiki.rubyonrails.com/rails/pages/HowToWrite...

and followed it, but when I get to

$ rake test_informix

I get the following error messages:

-----------------------8<-----------------------
./test/../lib/active_record/base.rb:244: undefined method
`cattr_accessor' for ActiveRecord::Base:Class (NoMethodError)
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
        from
/usr/local/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:in `require'
        from ./test/abstract_unit.rb:5
        from ./test/aaa_create_tables_test.rb:2:in `require'
        from ./test/aaa_create_tables_test.rb:2
        from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5:in
`load'
        from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5
        from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5:in
`each'
        from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby
-Ilib:test:test/connec...]
----------------------->8-----------------------


I'm using ruby-1.8.2 on Solaris 9 and the related gems installed are:

actionmailer (1.1.3)
    Service layer for easy email delivery and testing.

actionpack (1.11.0)
    Web-flow and rendering framework putting the VC in MVC.

actionwebservice (0.9.3)
    Web service support for Action Pack.

activerecord (1.13.0)
    Implements the ActiveRecord pattern for ORM.

activesupport (1.2.3)
    Support and utility classes used by the Rails framework.

rails (0.14.3)
    Web-application framework with template engine, control-flow layer,
    and ORM.

rake (0.6.2)
    Ruby based make-like utility.

Any ideas?
--
Gerardo Santana
"Between individuals, as between nations, respect for the rights of
others is peace" - Don Benito Juárez
http://santanatechnotes.blogspot.com/
5a601582df3b42b65a5e8353fc9305da?d=identicon&s=25 =?ISO-8859-1?Q?Gerardo_Santana_G=F3mez_Garrido?= (Guest)
on 2005-12-18 11:15
(Received via mailing list)
Nevermind, it was just answered in the Ruby list. For the record, I
need to set RUBYOPT=-rubygems before running rake test_informix.

--
Gerardo Santana
"Between individuals, as between nations, respect for the rights of
others is peace" - Don Benito Juárez
http://santanatechnotes.blogspot.com/
This topic is locked and can not be replied to.