Sha256: 778891d80a91c53e78eae34277c7ebec8e7db94f7276031c456db76551991866
Contents?: true
Size: 665 Bytes
Versions: 8
Compression:
Stored size: 665 Bytes
Contents
require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiPushDeletes" do it_should_behave_like "ApiHelper" do it "should delete object from :md" do data = {'1' => @product1, '2' => @product2, '3' => @product3} @s = Source.load(@s_fields[:name],@s_params) set_doc_state(@s, {:md => data, :md_size => '3'}) data.delete('2') post "/app/#{Rhoconnect::API_VERSION}/#{@s_fields[:name]}/push_deletes", {:user_id => @u.id, :objects => ['2']}, {Rhoconnect::API_TOKEN_HEADER => @api_token} last_response.should be_ok verify_doc_result(@s, {:md => data, :md_size=>'2'}) end end end
Version data entries
8 entries across 8 versions & 1 rubygems