2022-08-13 15:12:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'errors/omniauth_error' do
|
|
|
|
let(:provider) { FFaker::Product.brand }
|
|
|
|
let(:error) { FFaker::Lorem.sentence }
|
|
|
|
|
|
|
|
before do
|
|
|
|
assign(:provider, provider)
|
|
|
|
assign(:error, error)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'renders template' do
|
|
|
|
render
|
|
|
|
|
|
|
|
expect(rendered).to have_content(provider)
|
2023-03-17 16:20:25 +05:30
|
|
|
expect(rendered).to have_content(error)
|
2022-08-13 15:12:31 +05:30
|
|
|
expect(rendered).to have_link('Sign in')
|
2023-03-17 16:20:25 +05:30
|
|
|
expect(rendered).to have_content(
|
|
|
|
_('If you are unable to sign in or recover your password, contact a GitLab administrator.')
|
|
|
|
)
|
2022-08-13 15:12:31 +05:30
|
|
|
end
|
|
|
|
end
|