Sha256: 73b632f92ca0543aebfffbb4859980f8214856ccdd679f1e2094c75ea2c594fa
Contents?: true
Size: 461 Bytes
Versions: 11
Compression:
Stored size: 461 Bytes
Contents
require 'spec_helper' describe Stellar::Operation, ".payment" do it "correctly translates the provided amount to the native representation" do op = Stellar::Operation.payment(destination: Stellar::KeyPair.random, amount: [:native, 20]) expect(op.body.value.amount).to eql(20_0000000) op = Stellar::Operation.payment(destination: Stellar::KeyPair.random, amount: [:native, "20"]) expect(op.body.value.amount).to eql(20_0000000) end end
Version data entries
11 entries across 11 versions & 2 rubygems