Stop using session flash to communicate with callbacks
This commit is contained in:
parent
b44399fb7c
commit
43f40c5d03
7 changed files with 12 additions and 30 deletions
|
@ -38,6 +38,8 @@ class UserBlocksTest < ActionDispatch::IntegrationTest
|
|||
|
||||
# revoke the ban
|
||||
get "/login"
|
||||
assert_response :redirect
|
||||
follow_redirect!
|
||||
assert_response :success
|
||||
post "/login", :params => { "username" => moderator.email, "password" => "test", :referer => "/user_blocks/#{block.id}/edit" }
|
||||
assert_response :redirect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue