Sha256: 6c118de235dc7b991292104b9826e5fe31f6ca036f156f9ffb6db23b9e5cd73f

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_context 'OAuth2::Error' do
  let(:oauth_error) { OAuth2::Error.new(oauth_response) }
  let(:oauth_response) do
    double(:oauth_response,
           parsed: { 'error' => error_message }).as_null_object
  end

  let(:error_message) { 'Validation failed: Email is already taken' }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.2.rc.3 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.2.rc.2 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.2.rc.1 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.1.rc.1 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.0 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-1.0.0.pre.1 spec/support/shared_contexts/oauth_error.rb