Sha256: 958f6f91059ded1eadec0ad5e5aeb0e7c0383d2c2e802d9459b659127ecc0b23
Contents?: true
Size: 1.04 KB
Versions: 46
Compression:
Stored size: 1.04 KB
Contents
require File.join(File.dirname(__FILE__),'api_helper') describe "RhosyncApiListSources" do it_should_behave_like "ApiHelper" it "should list all application sources" do post "/api/list_sources", {:api_token => @api_token} JSON.parse(last_response.body).sort.should == ["SimpleAdapter", "SampleAdapter", "FixedSchemaAdapter"].sort end it "should list all application sources using partition_type param" do post "/api/list_sources", {:api_token => @api_token, :partition_type => 'all'} JSON.parse(last_response.body).sort.should == ["SimpleAdapter", "SampleAdapter", "FixedSchemaAdapter"].sort end it "should list app partition sources" do post "/api/list_sources", {:api_token => @api_token, :partition_type => :app} JSON.parse(last_response.body).should == ["SimpleAdapter"] end it "should list user partition sources" do post "/api/list_sources", {:api_token => @api_token, :partition_type => :user} JSON.parse(last_response.body).sort.should == ["SampleAdapter", "FixedSchemaAdapter"].sort end end
Version data entries
46 entries across 46 versions & 1 rubygems