Sha256: 2d01a914fe45c3a502f54781b50f1a72a83e53f4ca05fe1d336b40ab8b2830ab
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Braintree::EnrichedCustomerData do describe "self.new" do it "is protected" do expect do Braintree::EnrichedCustomerData.new end.to raise_error(NoMethodError, /protected method .new/) end end describe "self._new" do it "initializes the object with the appropriate attributes set" do params = { fields_updated: ["username"], profile_data: { username: "a-username", first_name: "a-first-name", last_name: "a-last-name", phone_number: "a-phone-number", email: "a-email", }, } payment_method_customer_data_updated = Braintree::EnrichedCustomerData._new(params) expect(payment_method_customer_data_updated.profile_data).to be_a(Braintree::VenmoProfileData) expect(payment_method_customer_data_updated.fields_updated).to eq(["username"]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
braintree-4.15.0 | spec/unit/braintree/enriched_customer_data_spec.rb |