mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:40:39 +08:00
12 lines
361 B
Ruby
12 lines
361 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe "users/omniauth_callbacks/failure.html.erb" do
|
|
before { flash[:error] = I18n.t("login.omniauth_error", strategy: "test") }
|
|
|
|
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
|