Sha256: 8d66c1e6aa44e279c34789e0c2e98c40c224fcd52aca15f712a83a47f394d1a0

Contents?: true

Size: 411 Bytes

Versions: 10

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe SolidusBolt::Oauth::TokenService, :vcr, :bolt_configuration do
  subject(:api) {
    described_class.new(authorization_code: 'Bolt Authorization Code', scope: 'openid bolt.account.manage')
  }

  describe '#call', vcr: true do
    it 'makes the API call' do
      expect { api.call }.to raise_error SolidusBolt::ServerError
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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