Added a BigBlueButton error page (#548)

This commit is contained in:
farhatahmad
2019-05-23 09:36:28 -04:00
committed by Jesus Federico
parent c3d1ce3a04
commit 190fc57f5e
4 changed files with 45 additions and 3 deletions

View File

@ -24,11 +24,13 @@ end
describe ApplicationController do
controller do
before_action :check_if_unbanned
def index
head :ok
end
def error
raise BigBlueButton::BigBlueButtonException
end
end
context "roles" do
@ -56,4 +58,13 @@ describe ApplicationController do
expect(response).to redirect_to(root_path)
end
end
context "errors" do
it "renders a BigBlueButton error if a BigBlueButtonException occurrs" do
routes.draw { get "error" => "anonymous#error" }
get :error
expect(response).to render_template("errors/bigbluebutton_error")
end
end
end