add errors controller with error pages for 404 500 422

This commit is contained in:
Zachary Chai
2017-03-21 15:40:14 -04:00
parent 8cf75b6051
commit b55d535d33
9 changed files with 67 additions and 202 deletions

View File

@ -0,0 +1,14 @@
require 'test_helper'
class ErrorsControllerTest < ActionController::TestCase
test "should get not_found" do
get :not_found
assert_response :success
end
test "should get error" do
get :error
assert_response :success
end
end