mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Upgrade stray legacy hash syntax to 1.9 syntax.
This commit is contained in:
parent
ce3ead6b5f
commit
90e55409e1
1 changed files with 4 additions and 4 deletions
|
@ -12,24 +12,24 @@ class CustomRegistrationsControllerTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
test "yield resource to block on create success" do
|
||||
post :create, {user: {:email => "user@example.org", :password => "password", :password_confirmation => "password"}}
|
||||
post :create, { user: { email: "user@example.org", password: "password", password_confirmation: "password" } }
|
||||
assert @controller.create_block_called?, "create failed to yield resource to provided block"
|
||||
end
|
||||
|
||||
test "yield resource to block on create failure" do
|
||||
post :create, {user: {}}
|
||||
post :create, { user: { } }
|
||||
assert @controller.create_block_called?, "create failed to yield resource to provided block"
|
||||
end
|
||||
|
||||
test "yield resource to block on update success" do
|
||||
sign_in @user
|
||||
put :update, {user: {current_password: @password}}
|
||||
put :update, { user: { current_password: @password } }
|
||||
assert @controller.update_block_called?, "update failed to yield resource to provided block"
|
||||
end
|
||||
|
||||
test "yield resource to block on update failure" do
|
||||
sign_in @user
|
||||
put :update, {user: {}}
|
||||
put :update, { user: { } }
|
||||
assert @controller.update_block_called?, "update failed to yield resource to provided block"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue