Sha256: 02002d5653e3272e52d2317a0f923c2279279fb52f3715b5f3198082e0314b69
Contents?: true
Size: 662 Bytes
Versions: 22
Compression:
Stored size: 662 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_state(@s.docname(:md) => data,@s.docname(:md_size) => '3') data.delete('2') post "/api/source/push_deletes", :api_token => @api_token, :user_id => @u.id, :source_id => @s_fields[:name], :objects => ['2'] last_response.should be_ok verify_result(@s.docname(:md) => data,@s.docname(:md_size)=>'2') end end end
Version data entries
22 entries across 22 versions & 1 rubygems