Sha256: e9eb167fa4d3f2b1610d127e6adaae385d5f905a3dc33b40fe1dc921743d3306

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

# encoding: UTF-8

require 'spec_helper'

RSpec.describe BoletoSimples::OAuthClient do

  describe '#userinfo' do

    context 'without authentication', :vcr do
      let(:credentials) { { token: 'invalid-token' } }
      let(:client_options) { { user_agent: 'Meu e-Commerce (meuecommerce@example.com)' } }
      let(:client) { BoletoSimples::OAuthClient.new(nil, nil, credentials, client_options) }

      it { expect(client.userinfo).to eq('error' => 'VocĂȘ precisa se logar ou registrar antes de prosseguir.') }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boletosimples-0.0.7 spec/boletosimples/oauth_client_spec.rb