Sha256: 8c3d3699f03574089a5394f0cf219552899580fdd1feeec33b3b8764a8d24851
Contents?: true
Size: 814 Bytes
Versions: 3
Compression:
Stored size: 814 Bytes
Contents
require 'spec_helper' describe Rentjuicer::Client do context "basic" do before do @rentjuicer = new_rentjuicer end it "should set the api_key" do @rentjuicer.api_key.should == RENTJUICER_API_KEY @rentjuicer.http_timeout.should == nil end it "should set the base uri" do @rentjuicer.class.base_uri.should == "http://api.rentalapp.zillow.com/#{RENTJUICER_API_KEY}" end end context "timeout" do before do @rentjuicer = new_timeout_5_rentjuicer end it "should set the api_key" do @rentjuicer.api_key.should == RENTJUICER_API_KEY @rentjuicer.http_timeout.should == 5 end it "should set the base uri" do @rentjuicer.class.base_uri.should == "http://api.rentalapp.zillow.com/#{RENTJUICER_API_KEY}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rentjuicer-0.10.1 | spec/rentjuicer/client_spec.rb |
rentjuicer-0.10.0 | spec/rentjuicer/client_spec.rb |
rentjuicer-0.9.0 | spec/rentjuicer/client_spec.rb |