lib/rspec/models/unidom/geo/locating_spec.rb in unidom-geo-1.5.2 vs lib/rspec/models/unidom/geo/locating_spec.rb in unidom-geo-1.5.3

- old
+ new

@@ -16,8 +16,23 @@ locator_type: 'Unidom::Geo::Locator::Mock' } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes + location_attributes = { + region_id: SecureRandom.uuid, + region_type: 'Unidom::Geo::Region::Mock', + longitude: 120.000000, + latitude: 31.000000, + postal_address: 'Somewhere', + postal_code: '812345', + minimum_longitude: 119.990000, + minimum_latitude: 30.990000, + maximum_longitude: 120.010000, + maximum_latitude: 31.010000 + } + + it_behaves_like 'belongs_to', model_attributes, :location, Unidom::Geo::Location, location_attributes + end end