mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 22:04:27 +08:00

It's very easy to forget to add `require 'rails_helper'` at the top of every core/plugin spec file, and omissions can cause some very confusing/sporadic errors. By setting this flag in `.rspec`, we can remove the need for `require 'rails_helper'` entirely.
13 lines
319 B
Ruby
13 lines
319 B
Ruby
# frozen_string_literal: true
|
|
|
|
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.generic", strategy: 'test'))).not_to eq(nil)
|
|
end
|
|
|
|
end
|