<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>generators/session/session_generator.rb</filename>
    </added>
    <added>
      <filename>generators/session/templates/session.rb</filename>
    </added>
    <added>
      <filename>lib/authlogic/testing/test_unit_helpers.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,8 @@
+== 1.3.7 released 2008-11-30
+
+* Added session generator: script/generate session UserSession
+* Added Test::Unit helpers file, see testing in the README
+
 == 1.3.6 released 2008-11-30
 
 * Modified validates_length_of for password so that there is a fallback validation if the passed &quot;if statement&quot; fails</diff>
      <filename>CHANGELOG.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -46,6 +46,7 @@ test/libs/mock_controller.rb
 test/libs/mock_cookie_jar.rb
 test/libs/mock_request.rb
 test/libs/ordered_hash.rb
+test/libs/user.rb
 test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/config_test.rb
 test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/credentials_test.rb
 test/orm_adapters_tests/active_record_adapter_tests/acts_as_authentic_tests/logged_in_test.rb</diff>
      <filename>Manifest</filename>
    </modified>
    <modified>
      <diff>@@ -439,6 +439,23 @@ Obviously there is a little more to it than this, but hopefully this clarifies a
 
 When things come together like this I think its a sign that you are doing something right. Put that in your pipe and smoke it!
 
+== Testing
+
+Testing with authlogic is easy, there is a helper file that will add some convenient test helpers for you. In your test_helper.rb file do the following:
+
+  # test/test_helper.rb
+  require 'authlogic/testing/test_unit_helpers'
+
+You get the following methods:
+
+  set_session_for(record_object)
+  set_cookie_for(record_object)
+  set_http_auth_for(username, password)
+
+In your test, before you execute a request, just call one of those methods and it will set the proper values so that it will seems as if that record is logged in.
+
+You can also checkout the authlogic_example application (see helpful links above), the tests there use this.
+
 == Framework agnostic (Rails, Merb, etc.)
 
 I designed Authlogic to be framework agnostic, meaning it doesn't care what framework you use it in. Right out of the box it supports rails and merb. I have not had the opportunity to use other frameworks, but the only thing stopping Authlogic from being used in other frameworks is a simple adapter. Check out controller_adapters/rails_adapter, or controller_adapters/merb_adapter.</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -121,7 +121,7 @@ module Authlogic
                   return false unless send(#{options[:password_field_validates_length_of_options][:if].inspect})
                 end
                 
-                self.#{options[:crypted_password_field]}.blank?
+                #{options[:crypted_password_field]}.blank?
               end
               
               private</diff>
      <filename>lib/authlogic/orm_adapters/active_record_adapter/acts_as_authentic/credentials.rb</filename>
    </modified>
    <modified>
      <diff>@@ -44,7 +44,7 @@ module Authlogic # :nodoc:
 
     MAJOR = 1
     MINOR = 3
-    TINY  = 5
+    TINY  = 6
 
     # The current version as a Version instance
     CURRENT = new(MAJOR, MINOR, TINY)</diff>
      <filename>lib/authlogic/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5238a025cece9d502647d6c9ccef5c3a68641f58</id>
    </parent>
  </parents>
  <author>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </author>
  <url>http://github.com/sob/authlogic/commit/af9712b32a518aa9ce59c2b6b1d3900c6ac0014c</url>
  <id>af9712b32a518aa9ce59c2b6b1d3900c6ac0014c</id>
  <committed-date>2008-12-01T13:05:22-08:00</committed-date>
  <authored-date>2008-12-01T13:05:22-08:00</authored-date>
  <message>Added Test::Unit helpers and a session generator</message>
  <tree>9b391214dffdae660206ab7041042ab0171367f4</tree>
  <committer>
    <name>binarylogic</name>
    <email>bjohnson@binarylogic.com</email>
  </committer>
</commit>
