Skip to content

Commit

Permalink
Fix changelog e cleanup white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Nov 21, 2010
1 parent 7145099 commit ed30114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rdoc
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/controllers/internal_helpers_test.rb
Expand Up @@ -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')
Expand Down

0 comments on commit ed30114

Please sign in to comment.