require 'test_helper' class ShareCommentsControllerTest < ActionDispatch::IntegrationTest # setup do # @share_comment = share_comments(:one) # end # test "should get index" do # get share_comments_url # assert_response :success # end # test "should get new" do # get new_share_comment_url # assert_response :success # end # test "should create share_comment" do # assert_difference('ShareComment.count') do # post share_comments_url, params: { share_comment: { } } # end # assert_redirected_to share_comment_url(ShareComment.last) # end # test "should show share_comment" do # get share_comment_url(@share_comment) # assert_response :success # end # test "should get edit" do # get edit_share_comment_url(@share_comment) # assert_response :success # end # test "should update share_comment" do # patch share_comment_url(@share_comment), params: { share_comment: { } } # assert_redirected_to share_comment_url(@share_comment) # end # test "should destroy share_comment" do # assert_difference('ShareComment.count', -1) do # delete share_comment_url(@share_comment) # end # assert_redirected_to share_comments_url # end end