Sha256: 798a263aaf070a691148bd64afdfa89620984e530b22ed8092f37abcfacd06ae

Contents?: true

Size: 572 Bytes

Versions: 8

Compression:

Stored size: 572 Bytes

Contents

require 'spec_helper'

describe FuelSDK::Soap do

  let(:client) { FuelSDK::Client.new }

  subject { client }

  describe '#format_cud_properties_for_dataextension' do
    let(:de_properties) {
      [{'CustomerKey' => 'Orders', 'total' => 1}]
    }
    it 'leaves CustomerKey alone an puts other attributes in name value pairs under Properies' do
      expect(client.format_dataextension_cud_properties de_properties).to eq([{
        'CustomerKey' => 'Orders',
         'Properties' => {'Property' => [{'Name' => 'total', 'Value' => 1}]}
       }])
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fuelsdk-0.1.11 spec/soap/dataextension_spec.rb
fuelsdk-0.1.9 spec/soap/dataextension_spec.rb
fuelsdk-0.1.8 spec/soap/dataextension_spec.rb
fuelsdk-0.1.7 spec/soap/dataextension_spec.rb
fuelsdk-0.1.6 spec/soap/dataextension_spec.rb
fuelsdk-0.1.5 spec/soap/dataextension_spec.rb
fuelsdk-0.1.4 spec/soap/dataextension_spec.rb
fuelsdk-0.1.3 spec/soap/dataextension_spec.rb