test/integrations/certificate_test.rb in geocerts-0.0.21 vs test/integrations/certificate_test.rb in geocerts-0.0.22

- old
+ new

@@ -164,18 +164,18 @@ end end should 'return a GeoCerts::Certificate when successful' do managed_server_request :get, "/orders/#{@order_id}/certificate.xml", :response => Responses::Certificate::Certificate do - managed_server_request :post, "/orders/422815/certificate/reissue.xml?order[csr][body]=testbody", :response => Responses::Certificate::Certificate do + managed_server_request :post, "/orders/422815/certificate/reissue.xml?certificate[csr][body]=testbody", :response => Responses::Certificate::Certificate do assert_kind_of(GeoCerts::Certificate, GeoCerts::Certificate.find(@order_id).reissue!(GeoCerts::CSR.new(:body => 'testbody'))) end end end should 'raise an error with no CSR body provided' do managed_server_request :get, "/orders/#{@order_id}/certificate.xml", :response => Responses::Certificate::Certificate do - managed_server_request :post, "/orders/#{@order_id}/certificate/reissue.xml?order[csr][body]=", :response => Responses::Certificate::MissingCSRBody do + managed_server_request :post, "/orders/#{@order_id}/certificate/reissue.xml?certificate[csr][body]=", :response => Responses::Certificate::MissingCSRBody do assert_responds_with_exception(GeoCerts::UnprocessableEntity, -90010) do GeoCerts::Certificate.find(@order_id).reissue!(GeoCerts::CSR.new(:body => nil)) end end end