Sha256: ac99baffb657c1c38037cf6d627040bb15cba801a5a02ee5890de58117f4a28e

Contents?: true

Size: 370 Bytes

Versions: 12

Compression:

Stored size: 370 Bytes

Contents

require './spec/spec_helper'

describe Rule do

  describe 'for_property_type' do
   
    on_get_it "should get documents for a listing" do
      stub_auth_request
      stub_api_get('/listings/rules/propertytypes/A','rules/get.json')

      rules = Rule.for_property_type('A')
      expect(rules).to be_an(Array)
      expect(rules.length).to eq(2)
    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/rule_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/rule_spec.rb