Sha256: a8a39d70df780e9cd2b455f4a5cbe05540e11144f782010cec297948ea5bf787

Contents?: true

Size: 637 Bytes

Versions: 38

Compression:

Stored size: 637 Bytes

Contents

require 'spec_helper'

describe 'account_referrals' do
  let(:client) { create_client }
  let!(:referrer) { create_account(client: client) }

  it 'shows referrals for an account', :mock_only do
    referral = create_account_referral(client, referrer: referrer)

    expect(referrer.referrals.all).to contain_exactly(referral)
  end

  it 'shows all account referrals', :mock_only do
    referral1 = create_account_referral(client)
    referral2 = create_account_referral(client)
    account_referrals = client.account_referrals.all

    expect(account_referrals.map(&:identity)).to contain_exactly(referral1.id, referral2.id)
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
ey-core-3.6.4 spec/accounts_referrals_spec.rb
ey-core-3.6.3 spec/accounts_referrals_spec.rb
ey-core-3.6.1 spec/accounts_referrals_spec.rb
groove-ey-core-3.6.3 spec/accounts_referrals_spec.rb
groove-ey-core-3.6.2 spec/accounts_referrals_spec.rb
groove-ey-core-3.6.1 spec/accounts_referrals_spec.rb
ey-core-3.5.0 spec/accounts_referrals_spec.rb
ey-core-3.4.4 spec/accounts_referrals_spec.rb
ey-core-3.4.2 spec/accounts_referrals_spec.rb
ey-core-3.4.1 spec/accounts_referrals_spec.rb
ey-core-3.4.0 spec/accounts_referrals_spec.rb
ey-core-3.3.1 spec/accounts_referrals_spec.rb
ey-core-3.3.0 spec/accounts_referrals_spec.rb
ey-core-3.2.6 spec/accounts_referrals_spec.rb
ey-core-3.2.5 spec/accounts_referrals_spec.rb
ey-core-3.2.4 spec/accounts_referrals_spec.rb
ey-core-3.2.3 spec/accounts_referrals_spec.rb
ey-core-3.2.2 spec/accounts_referrals_spec.rb
ey-core-3.2.1 spec/accounts_referrals_spec.rb
ey-core-3.2.0 spec/accounts_referrals_spec.rb