Sha256: e386b3de8d787b86000327d5ba2202133943456015264cc7cb4c64e8ba4e7ccf

Contents?: true

Size: 541 Bytes

Versions: 30

Compression:

Stored size: 541 Bytes

Contents

require File.join(File.dirname(__FILE__),'api_helper')

describe "RhosyncApiPushDeletes" do
  it_should_behave_like "ApiHelper"
  
  it "should delete object from :md" do
    data = {'1' => @product1, '2' => @product2, '3' => @product3}
    set_state(@s.docname(:md) => data)
    data.delete('2')
    post "/api/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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rhosync-2.1.3 spec/api/push_deletes_spec.rb
rhosync-2.1.2 spec/api/push_deletes_spec.rb
rhosync-2.1.1 spec/api/push_deletes_spec.rb
rhosync-2.1.0 spec/api/push_deletes_spec.rb
rhosync-2.1.0.beta.2 spec/api/push_deletes_spec.rb
rhosync-2.1.0.beta.1 spec/api/push_deletes_spec.rb
rhosync-2.0.9 spec/api/push_deletes_spec.rb
rhosync-2.0.8 spec/api/push_deletes_spec.rb
rhosync-2.0.7 spec/api/push_deletes_spec.rb
rhosync-2.0.6 spec/api/push_deletes_spec.rb
rhosync-2.0.5 spec/api/push_deletes_spec.rb
rhosync-2.0.4 spec/api/push_deletes_spec.rb
rhosync-2.0.3 spec/api/push_deletes_spec.rb
rhosync-2.0.2 spec/api/push_deletes_spec.rb
rhosync-2.0.1 spec/api/push_deletes_spec.rb
rhosync-2.0.0 spec/api/push_deletes_spec.rb
rhosync-2.0.0.rc2 spec/api/push_deletes_spec.rb
rhosync-2.0.0.rc1 spec/api/push_deletes_spec.rb
rhosync-2.0.0.beta13 spec/api/push_deletes_spec.rb
rhosync-2.0.0.beta12 spec/api/push_deletes_spec.rb