forked from External/greenlight
add errors controller with error pages for 404 500 422
This commit is contained in:
14
test/controllers/errors_controller_test.rb
Normal file
14
test/controllers/errors_controller_test.rb
Normal 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
|
Reference in New Issue
Block a user