Sha256: 63e6fbbcb6fd59486ebb0941b7c34692e6dbe377c318855582a8fa00c7967a22
Contents?: true
Size: 888 Bytes
Versions: 4
Compression:
Stored size: 888 Bytes
Contents
require 'helper' describe GoAcoustic::Client::RelationalTable do before do @client = GoAcoustic.new access_token: 'abc123', url: 'https://api-campaign-us-1.goacoustic.com' end describe '.insert_update_relational_table' do it 'returns the success as true' do stub_post('/XMLAPI') .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', 'Authorization' => 'Bearer abc123' } 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
4 entries across 4 versions & 1 rubygems