static_pages_controller_test.rb 411 B

123456789101112131415161718192021
  1. require 'test_helper'
  2. class StaticPagesControllerTest < ActionDispatch::IntegrationTest
  3. def setup
  4. log_in_as users(:daniel)
  5. end
  6. test "should get home" do
  7. get home_url
  8. assert_response :success
  9. assert_select "title", "Home | School Platform"
  10. end
  11. test "should get about" do
  12. get about_url
  13. assert_response :success
  14. assert_select "title", "About | School Platform"
  15. end
  16. end