Hi list,
I''ve got a fresh rails install - all I''ve done is set up the
database
and generated a couple of scaffolds. It works fine when I access it
over "the web", but when I run rake, I get the following errors.
Any ideas what I need to do?
Thanks,
Hadley
(in /Users/hadley/Sites/had)
ruby -Ilib:test -S testrb test/unit/author_test.rb
test/unit/entry_test.rb test/unit/tag_test.rb
Loaded suite [test/unit/author_test.rb, test/unit/entry_test.rb,
test/unit/tag_test.rb]
Started
EEE
Finished in 0.281499 seconds.
1) Error:
test_truth(AuthorTest):
LoadError: No such file to load -- mysql
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__''
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require''
/opt/local/lib/ruby/gems/1.8/gems/activesupport-1.0.1/lib/active_support/dependencies.rb:197:in
`require_without_load_path_reloading''
/opt/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_controller/test_process.rb:13:in
`require''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_adapters/abstract_adapter.rb:10:in
`require_library_or_gem''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_adapters/mysql_adapter.rb:11:in
`mysql_connection''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in
`send''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_adapters/abstract_adapter.rb:136:in
`connection=''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/connection_adapters/abstract_adapter.rb:100:in
`retrieve_connection''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/base.rb:222:in
`connection''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:186:in
`create_fixtures''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:438:in
`load_fixtures''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:437:in
`each''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:437:in
`load_fixtures''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:394:in
`setup_with_fixtures''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:419:in
`setup''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.8.0/lib/active_record/fixtures.rb:418:in
`setup''