controller_test.rb 339 B

1234567891011121314
  1. # frozen_string_literal: true
  2. require "test_helper"
  3. class ControllerTest < ActionDispatch::IntegrationTest
  4. test "GET /" do
  5. get root_path
  6. assert_equal 200, response.status
  7. res = response.parsed_body
  8. assert_equal "http://example.com", res["host"]
  9. assert_equal ["admin@rubyonrails.org"], res["admin_emails"]
  10. end
  11. end