add controller tests

This commit is contained in:
Josh
2018-06-25 15:49:56 -04:00
parent 7c6174edc5
commit df90f4aade
5 changed files with 133 additions and 5 deletions

View File

@ -0,0 +1,25 @@
require "rails_helper"
describe ErrorsController, type: :controller do
describe "GET #not_found" do
it "returns not_found" do
get :not_found
expect(response).to have_http_status(404)
end
end
describe "GET #unprocessable" do
it "returns unprocessable" do
get :unprocessable
expect(response).to have_http_status(422)
end
end
describe "GET #internal_error" do
it "returns internal_error" do
get :internal_error
expect(response).to have_http_status(500)
end
end
end