Sha256: 4e57b7aa8823a390f745b024ae34b37b5c4c95318425769bcf74971d86e981da

Contents?: true

Size: 883 Bytes

Versions: 11

Compression:

Stored size: 883 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe YouGotListed::Client do

  context "standard" do
    before do
      @ygl = new_ygl
    end

    it "should set the api_key" do
      @ygl.class.default_params.should == {:key => YGL_API_KEY}
    end

    it "should not set the timeout" do
      @ygl.http_timeout.should == nil
    end

    it "should set the base uri" do
      @ygl.class.base_uri.should == "https://www.yougotlistings.com/api"
    end
  end

  context "timeout" do
    before do
      @ygl = new_ygl_timeout_5
    end

    it "should set the api_key" do
      @ygl.class.default_params.should == {:key => YGL_API_KEY}
    end

    it "should set the timeout" do
      @ygl.http_timeout.should == 5
    end

    it "should set the base uri" do
      @ygl.class.base_uri.should == "https://www.yougotlistings.com/api"
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
you_got_listed-0.7.2 spec/you_got_listed/client_spec.rb
you_got_listed-0.7.1 spec/you_got_listed/client_spec.rb
you_got_listed-0.7.0 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.6 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.5 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.4 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.3 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.2 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.1 spec/you_got_listed/client_spec.rb
you_got_listed-0.6.0 spec/you_got_listed/client_spec.rb
you_got_listed-0.5.1 spec/you_got_listed/client_spec.rb