Sha256: d8c3e657185a44e1046317f482e11388976e62d3ce6c000bb9a0b5984286da56

Contents?: true

Size: 361 Bytes

Versions: 11

Compression:

Stored size: 361 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')
      rules.should be_an(Array)
      rules.length.should == 2
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.32 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.31 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.29 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.28 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.27 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.26 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.25 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.24 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.23 spec/unit/spark_api/models/rule_spec.rb
spark_api-1.4.22 spec/unit/spark_api/models/rule_spec.rb