Sha256: d61348a08175bda3d4051950ed221cefe1698def203d2f6274fde450010622f9
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
require "spec_helper" describe ShippingEasy::Resources::Session do describe ".create" do it "sends a request with the expected options" do ShippingEasy::Resources::Session.should_receive(:execute_request!).with({:relative_path=>"/sessions", :http_method=>:post, :payload => {session: { external_identifier: "ABC123", email: "test@shippingeasy.com", name: "Test Inc." }}}, :partner) ShippingEasy::Resources::Session.create(payload: { session: { external_identifier: "ABC123", email: "test@shippingeasy.com", name: "Test Inc." }}) end end end
Version data entries
6 entries across 6 versions & 1 rubygems