Sha256: d082e2ba999a9476746d29e7e89acbc61def5b6616ed02cc933de577e0bf373a
Contents?: true
Size: 565 Bytes
Versions: 13
Compression:
Stored size: 565 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiClientSetDbDoc" do it_should_behave_like "ApiHelper" do it "should set client's db document by doc key and data" do data = {'1' => {'foo' => 'bar'}} dockey = 'myclientdoc' cdocname = @c.docname(dockey) post "/rc/#{Rhoconnect::API_VERSION}/clients/#{@c.id}/sources/#{@c.source_name}/docs/#{dockey}", {:data => data}, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok verify_result(cdocname => data) end end end
Version data entries
13 entries across 13 versions & 1 rubygems