Noob Rails patcher - problems running the sqlite3 tests...

Hi,

I am following the guide here:

I have an ubuntu 11.04 VM setup, installed rvm, and ruby (ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]).

Pulled down the rails from github and created a 3.0 branch:

$ git branch --track 3-0-stable origin/3-0-stable $ git checkout 3-0-stable

I can run the non-db tests ok, all pass

Then tried to run the sqlite3 tests like this:

$ cd activerecord $ rake test_sqlite3

But this fails with "undefined method `transform' for false:FalseClass (NoMethodError)", see below.

To make sure it was nothing fundamental re: sqlite, I created a basic rails 3.0.10 app and it starts ok, creates the db file alright.

I guess there is a setup step missing for sqlite3 - will have a dig around further.

Regards, Chris

/home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ bundler-1.0.18/lib/bundler/rubygems_ext.rb:43: warning: method redefined; discarding old gem_dir /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ bundler-1.0.18/lib/bundler/rubygems_ext.rb:154: warning: method redefined; discarding old hash /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ bundler-1.0.18/lib/bundler/rubygems_ext.rb:158: warning: discarding old eql? Using sqlite3 ./test/support/config.rb:24:in `read_config': undefined method `transform' for false:FalseClass (NoMethodError)   from ./test/support/config.rb:9:in `config'   from ./test/support/connection.rb:10:in `connection_config'   from ./test/support/connection.rb:16:in `connect'   from ./test/cases/helper.rb:15   from /home/rails/dev/rails/activerecord/test/cases/adapter_test.rb: 1:in `require'   from /home/rails/dev/rails/activerecord/test/cases/adapter_test.rb:1   from /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ rake-0.9.2/lib/rake/rake_test_loader.rb:11:in `require'   from /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ rake-0.9.2/lib/rake/rake_test_loader.rb:11   from /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'   from /home/rails/.rvm/gems/ruby-1.8.7-p352@p-rails-v3.0.10/gems/ rake-0.9.2/lib/rake/rake_test_loader.rb:5 rake aborted! Command failed with status (1): [/home/rails/.rvm/rubies/ruby-1.8.7- p352/bi...]

Tasks: TOP => test_sqlite3

You should have a file test/config.yml which contains DB config for the various DBs you can run against. It doesn't exist by default, but *should* be copied from test/config.example.yml the first time you try to run the tests.

So, could you check that it exists and that its contents are sane?

Hi Jon,

Thanks for that - the file is present, but empty.

Will give the example file a try.

Thanks, Chris.