thoughtbot-clearance 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,7 @@ module Clearance
74
74
  def deny_access(flash_message = nil, opts = {})
75
75
  store_location
76
76
  flash[:failure] = flash_message if flash_message
77
- render :template => "/sessions/new", :status => :unauthorized
77
+ redirect_to new_session_url
78
78
  end
79
79
  end
80
80
 
@@ -27,7 +27,7 @@ module Clearance
27
27
  end
28
28
 
29
29
  should_deny_access(:flash => /User has not confirmed email. Confirmation email will be resent./i)
30
- should_respond_with :unauthorized
30
+ should_redirect_to('new_session_url') { new_session_url }
31
31
 
32
32
  should "send the confirmation email" do
33
33
  assert_not_nil email = ActionMailer::Base.deliveries[0]
@@ -45,12 +45,7 @@ module Clearance
45
45
  should_not_set_the_flash
46
46
  end
47
47
 
48
- should "respond with 401 Unauthorized and render sign_in template" do
49
- assert_response :unauthorized,
50
- "access was expected to be denied (401 unauthorized)"
51
- assert_template "sessions/new",
52
- "template was expected to be sign in (sessions/new)"
53
- end
48
+ should_redirect_to('new_session_url') { new_session_url }
54
49
  end
55
50
 
56
51
  # HTTP FLUENCY
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thoughtbot-clearance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, inc.
data/KNOWN_ISSUES.textile DELETED
@@ -1,11 +0,0 @@
1
- h1. Known Issues
2
-
3
- h2. Rails 2.3
4
-
5
- * default_test failures - this is a "Rails 2.3 bug":http://is.gd/iZkY
6
- * CGI::Cookie.new('token', 'value') returns nil "[#42]":http://is.gd/iZlO
7
- * application.rb/application_controller.rb "[#44]":http://is.gd/iZl5
8
-
9
- h2. i18n
10
-
11
- * flash messages are in English-only "[#40]":http://is.gd/iZmq & "[#24]":http://is.gd/iZmz