Fix changelog e cleanup white spaces
This commit is contained in:
parent
71450998c5
commit
ed30114bd8
|
@ -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
|
* 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
|
* Use ActiveModel#to_key instead of #id
|
||||||
* sign_out_all_scopes now destroys the whole session
|
* 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
|
* default behavior changes
|
||||||
* sign_out_all_scopes defaults to true as security measure
|
* sign_out_all_scopes defaults to true as security measure
|
||||||
|
|
|
@ -49,11 +49,11 @@ class HelpersTest < ActionController::TestCase
|
||||||
@mock_warden.expects(:authenticate).with(:scope => :user).returns(User.new)
|
@mock_warden.expects(:authenticate).with(:scope => :user).returns(User.new)
|
||||||
assert_kind_of User, @controller.signed_in_resource
|
assert_kind_of User, @controller.signed_in_resource
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'is a devise controller' do
|
test 'is a devise controller' do
|
||||||
assert @controller.devise_controller?
|
assert @controller.devise_controller?
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'does not issue blank flash messages' do
|
test 'does not issue blank flash messages' do
|
||||||
MyController.send(:public, :set_flash_message)
|
MyController.send(:public, :set_flash_message)
|
||||||
I18n.stubs(:t).returns(' ')
|
I18n.stubs(:t).returns(' ')
|
||||||
|
@ -61,7 +61,7 @@ class HelpersTest < ActionController::TestCase
|
||||||
assert flash[:notice].nil?
|
assert flash[:notice].nil?
|
||||||
MyController.send(:protected, :set_flash_message)
|
MyController.send(:protected, :set_flash_message)
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'issues non-blank flash messages normally' do
|
test 'issues non-blank flash messages normally' do
|
||||||
MyController.send(:public, :set_flash_message)
|
MyController.send(:public, :set_flash_message)
|
||||||
I18n.stubs(:t).returns('non-blank')
|
I18n.stubs(:t).returns('non-blank')
|
||||||
|
|
Loading…
Reference in New Issue