spec/cloudhdr/job_spec.rb in cloudhdr-0.0.2 vs spec/cloudhdr/job_spec.rb in cloudhdr-0.0.3
- old
+ new
@@ -19,30 +19,30 @@
r = Cloudhdr::Job.create(@params)
r.class.should == Cloudhdr::Response
end
it "should apply the global API key when JSON and no api_key is passed" do
- pending "Need to fix"
+ skip "Need to fix"
Cloudhdr.api_key = 'asdfasdf'
Cloudhdr::HTTP.should_receive(:post).with(@url + ".json",@params_as_json,{}) do |url, params, options|
Cloudhdr::Base.decode(params)['api_key'].should == Cloudhdr.api_key
end.and_return(Cloudhdr::Response.new)
Cloudhdr::Job.create(:input => @params[:input])
Cloudhdr.api_key = nil
end
it "should apply the global API key when XML and no api_key is passed" do
- pending "Need to fix"
+ skip "Need to fix"
Cloudhdr.api_key = 'asdfasdf'
Cloudhdr::HTTP.should_receive(:post).with(@url + ".xml",@params_as_xml,{}) do |url, params, options|
Cloudhdr::Base.decode(params, :xml)['api_request']['api_key'].should == Cloudhdr.api_key
end.and_return(Cloudhdr::Response.new)
Cloudhdr::Job.create({:api_request => {:input => @params[:input]}}, {:format => :xml})
Cloudhdr.api_key = nil
end
it "should apply the global API key when an XML string is passed and no api_key is passed" do
- pending "Need to fix"
+ skip "Need to fix"
Cloudhdr.api_key = 'asdfasdf'
Cloudhdr::HTTP.should_receive(:post).with(@url + ".json",@params_as_xml,{}) do |url, params, options|
Cloudhdr::Base.decode(params, :xml)['api_request']['api_key'] == Cloudhdr.api_key
end.and_return(Cloudhdr::Response.new)
Cloudhdr::Job.create({:input => @params[:input]}.to_xml(:root => :api_request), {:format => :xml})