Unify error pages (#674)

* Unify error pages

* Start travis
This commit is contained in:
shawn-higgins1
2019-07-22 12:33:53 -04:00
committed by Jesus Federico
parent 9dd30138ba
commit ee26036105
9 changed files with 65 additions and 82 deletions

View File

@ -35,7 +35,7 @@ describe AdminsController, type: :controller do
@request.session[:user_id] = @user.id
get :index
expect(response).to render_template(:not_found)
expect(response).to render_template(:greenlight_error)
end
it "renders the admin settings if an admin tries to acccess it" do

View File

@ -80,7 +80,7 @@ describe ApplicationController do
routes.draw { get "user_not_found" => "anonymous#user_not_found" }
get :user_not_found
expect(response).to render_template("errors/not_found")
expect(response).to render_template("errors/greenlight_error")
end
it "renders a 404 error if user is not given" do
@ -92,7 +92,7 @@ describe ApplicationController do
routes.draw { get "user_not_found" => "anonymous#user_not_found" }
get :user_not_found
expect(response).to render_template("errors/not_found")
expect(response).to render_template("errors/greenlight_error")
end
it "renders a 500 error if any other error related to bbb api" do
@ -104,7 +104,7 @@ describe ApplicationController do
routes.draw { get "user_not_found" => "anonymous#user_not_found" }
get :user_not_found
expect(response).to render_template("errors/internal_error")
expect(response).to render_template("errors/greenlight_error")
end
end
end