Judging by the exception's location, the test environment config is not getting loaded. Do I need to do something else to activate this environment?
341 case abcs["test"]["adapter"] 342 when "mysql" 343 ActiveRecord::Base.establish_connection(:test) 344 ActiveRecord::Base.connection.recreate_database(abcs ["test"]["database"], abcs["test"]) # wrong number of arguments (2 for 1) Here is the test dict in my database.yml: test: adapter: mysql database: review_test username: review password: review host: 127.0.0.1 port: 3306 encoding: utf8 Here is the trace: % rake db:test:clone_structure -- trace (in /var/www/rails_apps/review_app) ** Invoke db:test:clone_structure (first_time) ** Invoke db:structure:dump (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:structure:dump ** Invoke db:test:purge (first_time) ** Invoke environment ** Execute db:test:purge rake aborted! wrong number of arguments (2 for 1) /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/databases.rake: 344:in `recreate_database' Thanks! Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---