Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Updated to reflect test failures created by the user session model if…

… we generate the model w/o skipping its fixture.
  • Loading branch information...
commit 8e0d961013764dc16785c06ff5ce59172be1db9d 1 parent 1979851
@davelnewton authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 README.markdown
8 README.markdown
@@ -14,10 +14,14 @@ Run ```bundle install``` as usual.
# Create an authlogic session
-rails g authlogic:session UserSession
+rails g authlogic:session UserSession --fixture=false
-This creates an empty ```UserSession``` model that derives from ```Authlogic::Session::Base```.
+This creates an empty ```UserSession``` model that derives from ```Authlogic::Session::Base```. We add the
+```--fixture=false``` to prevent the creation of a ```user_sessions.yml``` fixture file. If the file is created, when tests are run, Rails will try to delete the data from a non-exstent user_sessions table, causing test failure.
+Authlogic user sessions *look* like ActiveRecord models, but aren't--they're not backed by a table. They're an AR-like mapping of a user's sessions.
# Create (or update) a user model

0 comments on commit 8e0d961

Please sign in to comment.
Something went wrong with that request. Please try again.