Sha256: 9986bf606296d889521cb6e4fb93cdd239727cc10b4679dd4692e14db40b25fc

Contents?: true

Size: 649 Bytes

Versions: 52

Compression:

Stored size: 649 Bytes

Contents

require './spec/spec_helper'

describe PropertyTypes do
  before(:each) do
    @proptypes = PropertyTypes.new({
      "MlsName"=>"Residential",
      "MlsCode"=>"A"
    })
  end

  it "should respond to get" do
    PropertyTypes.should respond_to(:get)
  end

  describe "/propertytypes", :support do
    before(:each) do
      stub_auth_request
    end

    on_get_it "should return a list of property types" do
      stub_api_get("/propertytypes", "property_types/property_types.json")

      types = PropertyTypes.get
      types.should be_an(Array)
      types.count.should be(6)
    end
  end

  after(:each) do
    @proptypes = nil
  end

end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
spark_api-1.4.23 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.22 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.21 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.20 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.19 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.18 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.17 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.16 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.15 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.14 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.13 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.12 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.11 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.10 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.9 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.8 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.6 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.5 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.4 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.4.2 spec/unit/spark_api/models/property_types_spec.rb