Sha256: 63a81108ca79a7ebd50070331a1d4e7e641a82103cc898b669361ec1911de987

Contents?: true

Size: 852 Bytes

Versions: 12

Compression:

Stored size: 852 Bytes

Contents

require './spec/spec_helper'

describe PropertyTypes do

  it "should respond to get" do
    expect(PropertyTypes).to 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
      expect(types).to be_an(Array)
      expect(types.count).to be(6)
    end
  end

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

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

      types = PropertyTypes.all
      expect(types).to be_an(Array)
      expect(types.count).to be(6)
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spark_api-1.6.3 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/property_types_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/property_types_spec.rb