require File.expand_path('../../spec_helper', __FILE__) describe Sambatech::Client do it "should connect using the endpoint configuration" do client = Sambatech::Client.new endpoint = URI.parse(client.endpoint) connection = client.send(:connection).build_url(nil).to_s (connection).should == endpoint.to_s.concat("?key=you+need+to+set+a+key") end end