Sha256: 58bd8e9edaa0a45e318752dee61cd60e6ae240c0b4e7b4ec355d04d173ef526d

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
devise_g5_authenticatable-0.3.0 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.5.beta spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.4 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.4.beta spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.3 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.2 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.1 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.2.0 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.1.3 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.1.2 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.1.1 spec/support/shared_contexts/oauth_error.rb
devise_g5_authenticatable-0.1.0 spec/support/shared_contexts/oauth_error.rb