테스트 - Functional 테스트
컨트롤러 test 메서드 작성
require "test_helper"
class HelloControllerTest < ActionDispatch::IntegrationTest
test "list action" do
get :list
assert_equal 10, assigns(:books).length, 'found rows is wrong.'
assert_response :success, 'list action failed.'
assert_template 'hello/list'
end
endget :show, { id: 108 }Last updated