Sha256: cf10ca939f8261e17f12eea7326518722a9b078740857f483f0afe95a4cbb3fe

Contents?: true

Size: 501 Bytes

Versions: 5

Compression:

Stored size: 501 Bytes

Contents

describe Moip2::KeysApi do
  let(:keys_api) { described_class.new sandbox_oauth_client }

  describe "#show" do
    let(:keys) do
      VCR.use_cassette("get_keys") do
        keys_api.show
      end
    end

    context "when shooting request by keys" do
      it { expect(keys).not_to be_nil }
      it { expect(keys.keys.basic_auth.secret).to eq "ABABABABABABABABABABABABABABABABABABABAB" }
      it { expect(keys.keys.basic_auth.token).to eq "01010101010101010101010101010101" }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
moip2-1.3.1 spec/moip2/keys_spec.rb
moip2-1.2.1 spec/moip2/keys_spec.rb
moip2-1.2.0 spec/moip2/keys_spec.rb
moip2-1.1.0 spec/moip2/keys_spec.rb
moip2-1.0.0 spec/moip2/keys_spec.rb