Adelle,
Make sure you have the ADO module (it''s not included in the standard
Ruby DBI package). You can find the ADO module from
http://ruby-dbi.sourceforge.net/ and you will need to install it at
X:/Ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb.
That should do it for you. There are still a few tests that are failing
for the SQL Server adapter, but I am slowly trying to address those. My
problem is that I''m having too much fun developing my own Rails
application to focus on the adapter ;-)
--
DeLynn Berry
delynnb-+9FQAZFMD0vCste6SmUHRhL4W9x8LtSr@public.gmane.org
-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Adelle Hartley
Sent: Wednesday, March 09, 2005 11:49 PM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] Running unit tests on SQL Server
Hi everyone,
It''s been more than a month since I last fired up Ruby or ActiveRecord,
so imagine my surprise when, after getting the latest source and running
the unit tests for MySql, I was greeted with a screen full of errors.
I''ll come back to the MySql errors later. What follows is the output I
get when I run the tests for SQL server.
I installed ruby with the one-click installer, version 1.8.2.14. Is
there anything special I need to do to make ActiveRecord work with SQL
Server?
1) Error:
test_table_creation(CreateTablesTest):
TypeError: is not a class/module
c:/program files/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:499:in
`load_driver''
c:/program files/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:401:in
`_get_full_driver''
c:/program files/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:381:in
`connect''
E:/OpenSource/Ruby/rails/trunk/activerecord/test/../lib/active_record/co
nnec
tion_adapters/sqlserver_adapter.rb:46:in `sqlserver_connection''
E:/OpenSource/Ruby/rails/trunk/activerecord/test/../lib/active_record/co
nnec
tion_adapters/abstract_adapter.rb:148:in `send''
E:/OpenSource/Ruby/rails/trunk/activerecord/test/../lib/active_record/co
nnec
tion_adapters/abstract_adapter.rb:148:in `connection=''
E:/OpenSource/Ruby/rails/trunk/activerecord/test/../lib/active_record/co
nnec
tion_adapters/abstract_adapter.rb:112:in `retrieve_connection''
E:/OpenSource/Ruby/rails/trunk/activerecord/test/../lib/active_record/ba
se.r
b:195:in `connection''
./test/aaa_create_tables_test.rb:47:in `test_table_creation''
Adelle.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails