Informix adapter testing


#1

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/HowToWriteAnActiveRecordAdapter

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:inrequire__’
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:inrequire’
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:inload’
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 S.
“Between individuals, as between nations, respect for the rights of
others is peace” - Don Benito Juárez


#2

Nevermind, it was just answered in the Ruby list. For the record, I
need to set RUBYOPT=-rubygems before running rake test_informix.


Gerardo S.
“Between individuals, as between nations, respect for the rights of
others is peace” - Don Benito Juárez