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

Version Path
rhoconnect-3.2.1 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0.beta5 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0.beta4 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0.beta3 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0.beta2 spec/api/source/push_deletes_spec.rb
rhoconnect-3.2.0.beta1 spec/api/source/push_deletes_spec.rb
rhoconnect-3.1.2 spec/api/source/push_deletes_spec.rb
rhoconnect-3.1.1 spec/api/source/push_deletes_spec.rb
rhoconnect-3.1.0 spec/api/source/push_deletes_spec.rb
rhoconnect-3.1.0.beta2 spec/api/source/push_deletes_spec.rb
rhoconnect-3.1.0.beta1 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.6 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.5 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.4 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.3 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.2 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.1 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.0 spec/api/source/push_deletes_spec.rb
rhoconnect-3.0.0.rc1 spec/api/source/push_deletes_spec.rb