Sha256: 2c95a5894254dcff6fb50fb07c35938a88679e53ff7397e757ad60bc1c86c139

Contents?: true

Size: 935 Bytes

Versions: 11

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

require_relative 'spec_helper'

# rubocop:disable Metrics/BlockLength
RSpec.describe 'Trusona User Accounts' do
  before do
    @account_lookup = { trusona_id: '167791378' }
    @email_lookup   = { email: ENV['INTEGRATION_TEST_EMAIL'] }
  end

  describe 'retrieving a user account with their Trusona ID' do
    context 'when the user account exists and can be found' do
    end

    context 'when no user account exists for the given Trusona ID' do
      it 'then we should see a Trusona::ResourceNotFound error raised' do
        expect { Trusona::UserAccounts.find_by(@account_lookup) }.to(
          raise_error(Trusona::ResourceNotFoundError)
        )
      end
    end
  end

  describe 'searching for a user account using their email' do
    context 'when a user account exists with the given email' do
    end

    context 'when no user accounts exist with the given email' do
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
trusona-2.5.3 integrations/user_accounts_spec.rb
trusona-2.5.2 integrations/user_accounts_spec.rb
trusona-2.5.1 integrations/user_accounts_spec.rb
trusona-2.5.0 integrations/user_accounts_spec.rb
trusona-2.4.0 integrations/user_accounts_spec.rb
trusona-2.3.0 integrations/user_accounts_spec.rb
trusona-2.2.0 integrations/user_accounts_spec.rb
trusona-2.1.0 integrations/user_accounts_spec.rb
trusona-2.0.0 integrations/user_accounts_spec.rb
trusona-1.0.1 integrations/user_accounts_spec.rb
trusona-1.0.0 integrations/user_accounts_spec.rb