Database error when running Test

Hey, You'll need to setup a test database as well if your trying to run Unit Tests etc. Rails uses different DB's for dev, test and production

Convention would be the following: test:    adapter: mysql    database: emporium_test    username: root    password: root    host: localhost    socket: /Applications/MAMP/tmp/mysql/mysql.sock

Add that to you database.yml file first and then make a new DB called emporium_test and all should be fine.

Cam

Al Cholic wrote: