Sha256: 8007088f2ee9cacd918df9af7f73d94adaf3fda8da8fc18e330b2b62d02eba15
Contents?: true
Size: 856 Bytes
Versions: 1
Compression:
Stored size: 856 Bytes
Contents
require 'helper' describe SilverPop::Client::RelationalTable do before do @client = SilverPop.new access_token: 'abc123', url: 'https://api1.silverpop.com' end describe '.insert_update_relational_table' do it 'returns the success as true' do stub_post('/XMLAPI?access_token=abc123') .with(body: '<Envelope><Body><InsertUpdateRelationalTable><TABLE_ID>86767</TABLE_ID><ROWS><ROW><COLUMN name="Record Id"><![CDATA[GHbjh73643hsdiy]]></COLUMN></ROW></ROWS></InsertUpdateRelationalTable></Body></Envelope>') .to_return status: 200, body: fixture('relational_table.xml'), headers: { 'Content-type' => 'text/xml' } resp = @client.insert_update_relational_table '86767', [{'Record Id' => 'GHbjh73643hsdiy'}] expect(resp.Envelope.Body.RESULT.SUCCESS).to eq('true') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
silverpop-0.0.9 | spec/client/relational_table_spec.rb |