Sha256: 790aebb84e2e7bc97690c38ccd3ae43eb508d2e7b64827adbfa3ee1fb95b1dd4
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require File.dirname(__FILE__) + '/../../lib/trulia4r' require File.dirname(__FILE__) + '/../../lib/trulia4r/client' describe Trulia4r::Client do describe 'initialize' do before do @client = Trulia4r::Client.new('tkgvp2ghwpnp2mphydeyf7fw') end it 'sets the base_uri' do @client.class.base_uri.should == 'http://api.trulia.com' end it 'sets the web services page' do @client.api_page.should == '/webservices.php' end it 'sets default params to include the api key' do @client.class.default_params.should == {:apikey => 'tkgvp2ghwpnp2mphydeyf7fw'} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tcocca-trulia4r-1.0.1 | spec/trulia4r/client_spec.rb |