<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -74,7 +74,7 @@ module Clearance
           def deny_access(flash_message = nil, opts = {})
             store_location
             flash[:failure] = flash_message if flash_message
-            render :template =&gt; &quot;/sessions/new&quot;, :status =&gt; :unauthorized
+            redirect_to new_session_url
           end
         end
 </diff>
      <filename>lib/clearance/app/controllers/application_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@ module Clearance
               end
 
               should_deny_access(:flash =&gt; /User has not confirmed email. Confirmation email will be resent./i)
-              should_respond_with :unauthorized
+              should_redirect_to('new_session_url') { new_session_url }
 
               should &quot;send the confirmation email&quot; do
                 assert_not_nil email = ActionMailer::Base.deliveries[0]</diff>
      <filename>lib/clearance/test/functional/sessions_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -45,12 +45,7 @@ module Clearance
         should_not_set_the_flash
       end
 
-      should &quot;respond with 401 Unauthorized and render sign_in template&quot; do
-        assert_response :unauthorized,
-          &quot;access was expected to be denied (401 unauthorized)&quot;
-        assert_template &quot;sessions/new&quot;,
-          &quot;template was expected to be sign in (sessions/new)&quot;
-      end
+      should_redirect_to('new_session_url') { new_session_url }
     end
 
     # HTTP FLUENCY</diff>
      <filename>shoulda_macros/clearance.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fa424b8fe9fd8f151f32a726982a3fd42940b328</id>
    </parent>
  </parents>
  <author>
    <name>Matt Jankowski</name>
    <email>mjankowski@thoughtbot.com</email>
  </author>
  <url>http://github.com/thoughtbot/clearance/commit/410b802a47e3bd77d06f9a1a383656ab956fea9e</url>
  <id>410b802a47e3bd77d06f9a1a383656ab956fea9e</id>
  <committed-date>2009-03-20T10:40:15-07:00</committed-date>
  <authored-date>2009-03-20T10:40:15-07:00</authored-date>
  <message>we should redirect on failed login, not render new</message>
  <tree>e7c2fc22fb4874821b77d9256fe0e4899821600a</tree>
  <committer>
    <name>Matt Jankowski</name>
    <email>mjankowski@thoughtbot.com</email>
  </committer>
</commit>
