Sha256: 6d0a622068c66f5540489a8f4e715a7df890a5be63f4ee22da4b63db45742c0a

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

describe Genability::Client do

  Genability::Configuration::VALID_FORMATS.each do |format|

    context ".new(:format => '#{format}')" do

      before(:all) do
        @options = {:format => format}.merge(configuration_defaults)
        @client = Genability::Client.new(@options)
      end

      context ".zipcode" do

        use_vcr_cassette "zipcode"

        it "should return details for a given zipcode" do
          zipcode = @client.zipcode('48322')
          zipcode.should be_an Hashie::Mash
          zipcode.city.should == "WEST BLOOMFIELD"
        end

      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
genability-0.3.0 spec/client/zip_code_spec.rb
genability-0.2.0 spec/client/zip_code_spec.rb
genability-0.1.0 spec/client/zip_code_spec.rb