ruby on rails - Controller tests with authlogic expecting user_sessions table -


i'm using authlogic (along authlogic rpx) in new rails 3 application (beta4 , upgraded rc).

i cannot of functional tests pass. anytime try run rudimentary test, end error:

  4) error:      test_the_truth(userscontrollertest):      activerecord::statementinvalid: sqlite3::sqlexception: no such table:       user_sessions: delete "user_sessions" 1=1 

it doesn't matter controller i'm testing (even if it's not associated authlogic), seems expect usersession model requires database table, though inherits directly authlogic::session::base

outside of using rpx plugin, super-base authlogic setup, , not have issue running application itself. in tests.

any thoughts?

it appears being hamstrung rails 3's backtrace filtering. re-ran tests provide full backtrace:

backtrace=foo rake test 

turns out problem attempting load test fixtures users_session auto-generated classes.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -