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