mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
49 lines
1.1 KiB
Ruby
49 lines
1.1 KiB
Ruby
require 'test_helper'
|
|
|
|
class UserBlockingsControllerTest < ActionDispatch::IntegrationTest
|
|
setup do
|
|
@user_blocking = user_blockings(:one)
|
|
end
|
|
|
|
test "should get index" do
|
|
get user_blockings_url
|
|
assert_response :success
|
|
end
|
|
|
|
test "should get new" do
|
|
get new_user_blocking_url
|
|
assert_response :success
|
|
end
|
|
|
|
test "should create user_blocking" do
|
|
assert_difference('UserBlocking.count') do
|
|
post user_blockings_url, params: { user_blocking: { } }
|
|
end
|
|
|
|
assert_redirected_to user_blocking_url(UserBlocking.last)
|
|
end
|
|
|
|
test "should show user_blocking" do
|
|
get user_blocking_url(@user_blocking)
|
|
assert_response :success
|
|
end
|
|
|
|
test "should get edit" do
|
|
get edit_user_blocking_url(@user_blocking)
|
|
assert_response :success
|
|
end
|
|
|
|
test "should update user_blocking" do
|
|
patch user_blocking_url(@user_blocking), params: { user_blocking: { } }
|
|
assert_redirected_to user_blocking_url(@user_blocking)
|
|
end
|
|
|
|
test "should destroy user_blocking" do
|
|
assert_difference('UserBlocking.count', -1) do
|
|
delete user_blocking_url(@user_blocking)
|
|
end
|
|
|
|
assert_redirected_to user_blockings_url
|
|
end
|
|
end
|