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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -