forked from External/greenlight
Added a BigBlueButton error page (#548)
This commit is contained in:
committed by
Jesus Federico
parent
c3d1ce3a04
commit
190fc57f5e
@ -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
|
||||
|
Reference in New Issue
Block a user