How do you run active record tests using the ARCONN setting against a new adapter?

The tests are saying that I need to install the active record adapter
for my database, but the adapter clearly has been installed. Any ideas
of what may be going on here. Been looking at this for four days so
far with no success at all.

$ ARCONN=nuodb ruby -Itest test/cases/base_test.rb
Using nuodb with Identity Map off
activesupport/lib/active_support/dependencies.rb:251:in `require':
Please install the nuodb adapter: `gem install activerecord-nuodb-
adapter` (cannot load such file -- active_record/connection_adapters/
nuodb_adapter) (LoadError)

Do you have this file in your adpater?


To make it work you need to have exactly this file.

Rafael Mendonça França

Yep, I have a separate Gem with that file in it. That Gem is in my Gem
list. When I run my own tests, or run sample applications, no problem.
But when I try to run the "compliance" tests in Rails the tests fail
to pick up what is already on the load path.

The gem I am working on is here:

Thanks for the response. Are there any other strategies to solve this,
or clues why this won't work for me?


Did you put the gem in the Rails Gemfile?

Here an example:

You can use a .Gemfile in you own repository to not commit this addition.

Rafael Mendonça França

Oh, sigh.

Now I do :slight_smile:

Can we add some documentation around this under the banner of "Writing
an ActiveRecord Adapter"? Unless I missed it, I have not seen this
sort of doc and wish I had. Or should I just change the doc myself
(README) and push a pull request with the steps needed?


diff --git a/Gemfile b/Gemfile
index 0960e3d..85694b9 100644
--- a/Gemfile
+++ b/Gemfile
@@ -95,3 +95,6 @@ end

# A gem necessary for ActiveRecord tests with IBM DB
gem 'ibm_db' if ENV['IBM_DB']

By the way, thank you!!!!!!!!

Please send a pull request with this documentation and we will review.

Rafael Mendonça França