ååã®ç¶ãã§ããä»å㯠FunctionTest ãã RSpec on Rails ã«æ¸ãå¤ãã¦ã¿ã¾ããã ã·ã³ãã«ãªç½®ãæã ã¾ãã¯ãåç´ã«ç½®ãæãã¦ã¿ã¾ããã # todos_controller_test.rb require 'test_helper' class TodosControllerTest < ActionController::TestCase def setup @request.session[:login] = true end def test_should_get_index get :index assert_response :success assert_not_nil assigns(:todos) end def test_should_show_todo get :show, :id => todos(:task1).id assert_re
{{#tags}}- {{label}}
{{/tags}}