Sha256: 8b9254739dd4b1a222ffd277c04b90f3a8bab867b94b4c58d47e5a513b5a2e32

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 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

2 entries across 2 versions & 1 rubygems

Version Path
moip2-0.1.4 spec/moip2/keys_spec.rb
moip2-0.1.3 spec/moip2/keys_spec.rb