Sha256: 394e49c0fd016da5d6c35d2f14bbf22875746ff0a4ab4dd7bf61a3ee197ab71c

Contents?: true

Size: 388 Bytes

Versions: 10

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe SolidusBolt::Accounts::DetectAccountService, :vcr, :bolt_configuration do
  subject(:api) { described_class.new(email: email) }

  let(:email) { 'bolt@bolt.com' }

  describe '#call', vcr: true do
    it 'receives the correct response' do
      expect(api.call).to eq({ "has_bolt_account" => false })
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.7.1 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.7.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.6.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.5.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.4.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.3.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.2.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.1.0 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb
solidus_bolt-0.0.1 spec/services/solidus_bolt/accounts/detect_account_service_spec.rb