Sha256: 53011a3b383e2020a72b5e4b945fa8c6781cc96552ce014c19f5587318663438

Contents?: true

Size: 246 Bytes

Versions: 9

Compression:

Stored size: 246 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")

describe Braintree::Modification do
  it "converts string amount" do
    expect(Braintree::Modification._new(:amount => "100.00").amount).to eq(BigDecimal("100.00"))
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
braintree-4.23.0 spec/unit/braintree/modification_spec.rb
braintree-4.22.0 spec/unit/braintree/modification_spec.rb
braintree-4.21.0 spec/unit/braintree/modification_spec.rb
braintree-4.20.0 spec/unit/braintree/modification_spec.rb
braintree-4.19.0 spec/unit/braintree/modification_spec.rb
braintree-4.18.0 spec/unit/braintree/modification_spec.rb
braintree-4.17.0 spec/unit/braintree/modification_spec.rb
braintree-4.16.0 spec/unit/braintree/modification_spec.rb
braintree-4.15.0 spec/unit/braintree/modification_spec.rb