Sha256: 402a755b29888c4d3189e30a763b64a04844cbcf9b0350387b4949b3eb005b7d
Contents?: true
Size: 1.16 KB
Versions: 22
Compression:
Stored size: 1.16 KB
Contents
require File.join(File.dirname(__FILE__),'..','api_helper') describe "RhoconnectApiListSourceDocs" do it_should_behave_like "ApiHelper" do it "should list of shared source documents" do post "/api/source/list_source_docs", {:api_token => @api_token, :source_id => "SimpleAdapter", :user_id => '*'} JSON.parse(last_response.body).should == { "md"=>"source:application:__shared__:SimpleAdapter:md", "errors"=>"source:application:__shared__:SimpleAdapter:errors", "md_size"=>"source:application:__shared__:SimpleAdapter:md_size", "md_copy"=>"source:application:__shared__:SimpleAdapter:md_copy"} end it "should list user source documents" do post "/api/source/list_source_docs", {:api_token => @api_token, :source_id => "SampleAdapter", :user_id => @u.id} JSON.parse(last_response.body).should == { "md"=>"source:application:testuser:SampleAdapter:md", "errors"=>"source:application:testuser:SampleAdapter:errors", "md_size"=>"source:application:testuser:SampleAdapter:md_size", "md_copy"=>"source:application:testuser:SampleAdapter:md_copy"} end end end
Version data entries
22 entries across 22 versions & 1 rubygems