test/createsend_test.rb in createsend-1.0.0 vs test/createsend_test.rb in createsend-1.0.1

- old
+ new

@@ -2,21 +2,21 @@ class CreateSendTest < Test::Unit::TestCase context "when an api caller is authenticated" do setup do @api_key = '123123123123123123123' - @base_uri = 'http://api.createsend.com/api/v3' + @base_uri = 'https://api.createsend.com/api/v3' CreateSend.api_key @api_key @cs = CreateSend::CreateSend.new end should "get api key" do uri = URI.parse(@base_uri) site_url = "http://iamadesigner.createsend.com/" username = "myusername" password = "mypassword" - stub_get(nil, "http://#{username}:#{password}@#{uri.host}#{uri.path}/apikey.json?SiteUrl=#{CGI.escape(site_url)}", "apikey.json") + stub_get(nil, "https://#{username}:#{password}@#{uri.host}#{uri.path}/apikey.json?SiteUrl=#{CGI.escape(site_url)}", "apikey.json") apikey = @cs.apikey(site_url, username, password).ApiKey apikey.should == "981298u298ue98u219e8u2e98u2" end should "get all clients" do @@ -49,10 +49,10 @@ end context "when the CreateSend API responds with an error" do setup do @api_key = '123123123123123123123' - @base_uri = 'http://api.createsend.com/api/v3' + @base_uri = 'https://api.createsend.com/api/v3' CreateSend.api_key @api_key @cs = CreateSend::CreateSend.new @template = CreateSend::Template.new(:template_id => '98y2e98y289dh89h938389') end