error when running rake test_plugins

When attempting to run:
rake test_plugins PLUGIN=acts_as_attachment

Fails with:
`require__': no such file to load -- sqlite (MissingSourceFile)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in

Figured I was just missing SQLite so I installed everything (I think).
Using Ubuntu Dapper, I used this:

'sudo apt-get install swig sqlite3 libsqlite3-dev ruby1.8-dev'
'sudo gem install sqlite3-ruby'

Not sure what could still be missing. Any idea what is causing this

I’m getting the same error. I’ll keep looking into it.

Damn, I feel stupid now.

Go to the file database.yml in the plugin/acts_as_attachment/test directory. You’ll see configurations for different databases. Comment out the stuff you don’t need (i.e. if you’re using mysql, comment out the sqlite, sqlite3, and postgresql blocks). Comments in YAML are the same as ruby ( “#” at the beginning of the line).

Also, write in the password for your database (if you’re using one). Save that file.

Then, go to your database and create a database called acts_as_attachment_plugin_test.

Now run the plugin test and everything will be peachy :slight_smile:

(unless you’re not running edge, in which case it’ll throw a bunch of errors, but at least it’ll run the tests)