Skip to content

rspec/observer conflict kicking to test #71

Closed
djnawara opened this Issue Nov 18, 2009 · 2 comments

2 participants

@djnawara

I seem to have some sort of load issue kicking me into the test environment, and I've made a minimal app to replicate the issue. (http://www.ruby-forum.com/topic/199371#868558 has the app attached)

From what I can tell, the problem is due to three related items: 1) a user model with authlogic, 2) rspec-rails, and 3) a users observer. Removing any one of the three seems to "fix" the issue. I've noted the lines which you can comment out to see the problem resolve. (It should then load the development SQLite3 database with my test user). The visible symptom is:

SQLite3::SQLException: no such table: users: SELECT * FROM "users"

Apparently the conflict pushes the app into the test environment and therefore changes the database on me.

Gems:

  • authlogic 2.1.3
  • rspec and rspec-rails 1.2.9
  • rails 2.3.4

I'm on passenger 2.2.5, and I hope that's not a factor. I currently run stock Snow Leopard ruby.

Any clue how I can further track this down? I don't see anything obvious with either rspec or authlogic fudging with the environment…

Regards,
David Nawara

@tiegz
Collaborator
tiegz commented May 31, 2014

@djnawara ever fix this issue / ok to close?

@djnawara
djnawara commented Jun 1, 2014

I don't remember posting this. :-\

@djnawara djnawara closed this Jun 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.