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

13 lines
304 B
Ruby
Raw Normal View History

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