When attempting to run:
rake test_plugins PLUGIN=acts_as_attachment
Fails with:
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- sqlite (MissingSourceFile)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
Figured I was just missing SQLite so I installed everything (I think).
Using Ubuntu Dapper, I used this:
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
(unless you’re not running edge, in which case it’ll throw a bunch of errors, but at least it’ll run the tests)