Sha256: ff5b47ad57fa671cda8546ef81470b71bbb4ba640516cd62161ab503e5719315

Contents?: true

Size: 599 Bytes

Versions: 10

Compression:

Stored size: 599 Bytes

Contents

require 'spec_helper'

RSpec.describe SolidusBolt::AddAddressJob do
  subject(:add_address_job) { described_class.perform_now(order: order, access_token: access_token, address: address) }

  let(:order) { build(:order) }
  let(:address) { build(:address) }
  let(:access_token) { 'accesstoken' }

  before { allow(SolidusBolt::Accounts::AddAddressService).to receive(:call) }

  it 'calls the AddAddressService' do
    add_address_job
    expect(SolidusBolt::Accounts::AddAddressService).to have_received(:call).with(
      order: order, access_token: access_token, address: address
    )
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.7.1 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.7.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.6.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.5.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.4.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.3.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.2.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.1.0 spec/jobs/solidus_bolt/add_address_job_spec.rb
solidus_bolt-0.0.1 spec/jobs/solidus_bolt/add_address_job_spec.rb