Sha256: 7969b979f428fdca891bbcf50e1f3ab1c197065e2e826690429dd3303e9f7ca9
Contents?: true
Size: 1.14 KB
Versions: 7
Compression:
Stored size: 1.14 KB
Contents
require 'helper' class TestClient < Test::Unit::TestCase context "when instantiating a client instance" do should "use the correct url for api requests" do @client = Foursquare2::Client.new @client.api_url.should == 'https://api.foursquare.com/v2' end should "retain oauth token for requests" do @client = Foursquare2::Client.new(:oauth_token => 'yeehaw') @client.oauth_token.should == "yeehaw" end should "retain client id/secret for requests" do @client = Foursquare2::Client.new(:client_id => 'awesome', :client_secret => 'sauce') @client.client_id.should == 'awesome' @client.client_secret.should == 'sauce' end should "retain SSL option for requests when you don't pass it as param" do @client = Foursquare2::Client.new(:client_id => 'awesome', :client_secret => 'sauce') @client.ssl.should == {} end should "retain SSL option for requests" do @client = Foursquare2::Client.new(:client_id => 'awesome', :client_secret => 'sauce', :ssl => {:ca_file => 'path_to_ca_file'}) @client.ssl[:ca_file].should == 'path_to_ca_file' end end end
Version data entries
7 entries across 7 versions & 1 rubygems