test/createsend_test.rb in createsend-3.1.1 vs test/createsend_test.rb in createsend-3.2.0

- old
+ new

@@ -259,9 +259,20 @@ stub_get(@auth, "primarycontact.json", 'admin_get_primary_contact.json') result = @cs.get_primary_contact result.EmailAddress.should == 'admin@blackhole.com' end + should "get an external session url" do + email = "exammple@example.com" + chrome = "None" + url = "/subscribers" + integrator_id = "qw989q8wud98qwyd" + client_id = "9q8uw9d8u9wud" + stub_put(@auth, "externalsession.json", "external_session.json") + result = @cs.external_session_url email, chrome, url, integrator_id, client_id + result.SessionUrl.should == "https://external1.createsend.com/cd/create/ABCDEF12/DEADBEEF?url=FEEDDAD1" + end + end context "when the CreateSend API responds with an error" do multiple_contexts "authenticated_using_oauth_context", "authenticated_using_api_key_context" do