discourse/spec/views/omniauth_callbacks/failure.html.erb_spec.rb
2016-03-31 17:40:54 -04:00

13 lines
316 B
Ruby

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