discourse/spec/views/omniauth_callbacks/failure.html.erb_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
364 B
Ruby
Raw Normal View History

# frozen_string_literal: true
describe "users/omniauth_callbacks/failure.html.erb" do
before do
flash[:error] = I18n.t("login.omniauth_error", strategy: 'test')
end
it "renders the failure page" do
render template: 'users/omniauth_callbacks/failure'
expect(rendered).to match I18n.t("login.omniauth_error.generic", strategy: 'test')
end
end