spec/api/application/rhoconnect_api_spec.rb in rhoconnect-3.1.2 vs spec/api/application/rhoconnect_api_spec.rb in rhoconnect-3.2.0.beta1

- old
+ new

@@ -22,15 +22,10 @@ res.stub!(:body).and_return(["http://test.com"].to_json) RestClient.stub(:post).and_return(res) RestClient.should_receive(:post).once RhoconnectApi::get_adapter('some_url',@api_token).should == ["http://test.com"] end - - it "should save adapter using direct api call" do - RhoconnectApi::save_adapter('',@api_token,'http://test.com') - Rhoconnect.appserver.should == 'http://test.com' - end it "should save adapter using rest call" do RestClient.stub(:post).and_return("adpater url saved") RestClient.should_receive(:post).once RhoconnectApi::save_adapter('some_url',@api_token,'http://test.com').should == "adpater url saved" @@ -172,10 +167,11 @@ {"name"=>"password", "value"=>"testpass", "type"=>"string"}, {"name"=>"priority", "value"=>3, "type"=>"integer"}, {"name"=>"callback_url", "value"=>nil, "type"=>"string"}, {"name"=>"poll_interval", "value"=>300, "type"=>"integer"}, {"name"=>"retry_limit", "value"=>0, "type"=>"integer"}, + {"name"=>"simulate_time", "value"=>0, "type"=>"integer"}, {"name"=>"partition_type", "value"=>"user", "type"=>"string"}, {"name"=>"sync_type", "value"=>"incremental", "type"=>"string"}, {"name"=>"belongs_to", "type"=>"string", "value"=>nil}, {"name"=>"has_many", "type"=>"string", "value"=>"FixedSchemaAdapter,brand"}, {"name"=>"id", "value"=>"SampleAdapter", "type"=>"string"}, @@ -376,10 +372,11 @@ {"name"=>"password", "value"=>"testpass", "type"=>"string"}, {"name"=>"priority", "value"=>3, "type"=>"integer"}, {"name"=>"callback_url", "value"=>nil, "type"=>"string"}, {"name"=>"poll_interval", "value"=>300, "type"=>"integer"}, {"name"=>"retry_limit", "type"=>"integer", "value"=>0}, + {"name"=>"simulate_time", "value"=>0, "type"=>"integer"}, {"name"=>"partition_type", "value"=>"user", "type"=>"string"}, {"name"=>"sync_type", "value"=>"incremental", "type"=>"string"}, {"name"=>"belongs_to", "type"=>"string", "value"=>nil}, {"name"=>"has_many", "type"=>"string", "value"=>"FixedSchemaAdapter,brand"}, {"name"=>"id", "value"=>"SampleAdapter", "type"=>"string"}, @@ -401,9 +398,10 @@ {"name"=>"password", "value"=>"", "type"=>"string"}, {"name"=>"priority", "value"=>3, "type"=>"integer"}, {"name"=>"callback_url", "value"=>nil, "type"=>"string"}, {"name"=>"poll_interval", "value"=>201, "type"=>"integer"}, {"name"=>"retry_limit", "value"=>0, "type"=>"integer"}, + {"name"=>"simulate_time", "value"=>0, "type"=>"integer"}, {"name"=>"partition_type", "value"=>"app", "type"=>"string"}, {"name"=>"sync_type", "value"=>"incremental", "type"=>"string"}, {"name"=>"belongs_to", "type"=>"string", "value"=>nil}, {"name"=>"has_many", "type"=>"string", "value"=>nil}, {"name"=>"id", "value"=>"OtherAdapter", "type"=>"string"}, \ No newline at end of file