Sha256: 8d6eb345740ff05516fa3f492b77081127f06c2391c7a1b245a2c1fab1fbf69b
Contents?: true
Size: 978 Bytes
Versions: 10
Compression:
Stored size: 978 Bytes
Contents
require 'spec_helper' describe ListingMetaTranslations do before(:each) do stub_auth_request end context "/flexmls/propertytypes/<PropertyType.MlsCode>/translations", :support do on_get_it "gets all translations" do stub_api_get("/flexmls/propertytypes/A/translations", 'listing_meta_translations/get.json') translations = ListingMetaTranslations.for_property_type('A') translations.should be_an(ListingMetaTranslations) translations.StandardFields.should be_an(Hash) translations.CustomFields.should be_an(Hash) end on_get_it "doesn't explode if there are no results" do stub_api_get("/flexmls/propertytypes/A/translations", 'no_results.json') translations = ListingMetaTranslations.for_property_type('A') translations.should be_an(ListingMetaTranslations) translations.StandardFields.should be_an(Hash) translations.CustomFields.should be_an(Hash) end end end
Version data entries
10 entries across 10 versions & 1 rubygems