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.

15 lines
343 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "rails_helper"
describe "users/omniauth_callbacks/failure.html.erb" do
2017-07-27 20:20:09 -05:00
it "renders the failure page" do
flash[:error] = I18n.t("login.omniauth_error", strategy: 'test')
render
expect(rendered.match(I18n.t("login.omniauth_error.generic", strategy: 'test'))).not_to eq(nil)
2017-07-27 20:20:09 -05:00
end
end