Sha256: f2d4f6d933b0e5ca28db535a6fbdc0ddbe077a168eb241c2e491b810dac3e60c

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe BoletoSimples::OAuthClient do
  describe :userinfo do
    context :without_authentication 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

4 entries across 4 versions & 1 rubygems

Version Path
boletosimples-0.0.4 spec/boletosimples/oauth_client_spec.rb
boletosimples-0.0.3 spec/boletosimples/oauth_client_spec.rb
boletosimples-0.0.2 spec/boletosimples/oauth_client_spec.rb
boletosimples-0.0.1 spec/boletosimples/oauth_client_spec.rb