application_controller_test.rb 267 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1 2 3 4 5 6 7 8 9
require 'test_helper'

class ApplicationControllerTest < ActionDispatch::IntegrationTest
  test "redirects without semester id" do
    get "/"
    assert_response :redirect
    assert_match /\?semester_id=#{semesters(:fall2018).id}/, @response.redirect_url
  end
end