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