Permalink
Browse files

Fix changelog e cleanup white spaces

  • Loading branch information...
1 parent 7145099 commit ed30114bd8700c7e5c44b80ceeed39e4977d13e5 @carlosantoniodasilva carlosantoniodasilva committed Nov 21, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 CHANGELOG.rdoc
  2. +3 −3 test/controllers/internal_helpers_test.rb
View
@@ -18,7 +18,7 @@
* Sign up now check if the user is active or not and redirect him accordingly setting the inactive_signed_up message
* Use ActiveModel#to_key instead of #id
* sign_out_all_scopes now destroys the whole session
- * Added insensitive_case_keys that automatically downcases the given keys, by default downcases only e-mail (by github.com/adahl)
+ * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by github.com/adahl)
* default behavior changes
* sign_out_all_scopes defaults to true as security measure
@@ -49,19 +49,19 @@ def setup
@mock_warden.expects(:authenticate).with(:scope => :user).returns(User.new)
assert_kind_of User, @controller.signed_in_resource
end
-
+
test 'is a devise controller' do
assert @controller.devise_controller?
end
-
+
test 'does not issue blank flash messages' do
MyController.send(:public, :set_flash_message)
I18n.stubs(:t).returns(' ')
@controller.set_flash_message :notice, :send_instructions
assert flash[:notice].nil?
MyController.send(:protected, :set_flash_message)
end
-
+
test 'issues non-blank flash messages normally' do
MyController.send(:public, :set_flash_message)
I18n.stubs(:t).returns('non-blank')

0 comments on commit ed30114

Please sign in to comment.