winton / acts_as_archive

Don't delete your records, move them to a different table
MIT License
372 stars 87 forks source link

How do I bootstrap the test environment? #10

Closed grant-olson closed 13 years ago

grant-olson commented 14 years ago

Apologies if this is a stupid question. I haven't tried to work with a gem before.

I'm trying to use acts_as_archive with JRuby. I'm using mysql, but because it's jruby the adapter is jdbcdriver.

I was hoping that I could just add a condition in tables.rb, and things would work.

I downloaded, tried to run the specs, and it complained about a missing db. I created the db, but now I don't have any tables.

If you could point me in the right direction to get the test suite going, I'd appreciate it.

winton commented 13 years ago

Sorry for the long wait for a reply. I have recently upgraded the gem and will be adding directions on the wiki soon.

Edit fixtures/config/database.yml, fixtures/frameworks/rails2/database.yml, and fixtures/frameworks/rails3/database.yml.

cd spec
rake db:drop db:create
cd ../
spec/run

More detailed instructions to come.