I recently posted about an error I was having running tests for when I have 
added a new role.  It seemed like the test suite was not even bothering to run 
any migrations before running the tests, which obviously will never work.  So 
to test this out, I thought I'd try running tests in the postgresql database.

Whenever I try to run: 

mbpatrick:thecommunity patrick$ rake community_engine:test

I get an error that indicates that the database hasn't even been created:

/Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/abstract_adapter.rb:212:in
 `log': PGError: ERROR:  relation "roles" does not exist 
(ActiveRecord::StatementInvalid)

I thought rails sets up the database every time tests are run?  If not, how do 
I actually get it to migrate the database so that I can test things?

I've also tried:

mbpatrick:thecommunity patrick$ RAILS_ENV=test && script/generate 
plugin_migration && rake db:migrate
All plugins are migrated to their latest versions
(in /Users/patrick/src/hylo/thecommunity)
mbpatrick:thecommunity patrick$ 

This has no effect.  What the hell am I doing wrong?

Patrick

-- 
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.

Reply via email to