summaryrefslogtreecommitdiff
path: root/test/functional/errors_controller_test.rb
blob: e6d2367123752911894457a0352193c404efa847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class ErrorsControllerTest < ActionController::TestCase

  def test_not_found_resonds_with_404
    get 'not_found'
    assert_response 404
    assert_template 'errors/not_found'
  end

  def test_server_error_resonds_with_500
    get 'server_error'
    assert_response 500
    assert_template 'errors/server_error'
  end
end