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
/Users/rbuck/dev/sandboxes/github.com/drivers/drivers/rails/
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)
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.
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?
Bob
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']