README.md in unidom-geo-1.5.7 vs README.md in unidom-geo-1.5.8

- old
+ new

@@ -119,10 +119,14 @@ ```ruby # lib/unidom.rb def initialize_unidom + Unidom::Party::Person.class_eval do + include Unidom::Geo::Concerns::AsLocator + end + Unidom::Party::Shop.class_eval do include Unidom::Geo::Concerns::AsLocated end Unidom::Geo::China::Region.class_eval do @@ -135,9 +139,29 @@ require 'unidom' initialize_unidom # spec/support/unidom_rspec_shared_examples.rb require 'unidom/geo/rspec_shared_examples' + +# spec/models/unidom/party/person_spec.rb +describe Unidom::Party::Person, type: :model do + + context do + + model_attributes = { + name: 'Tim' + } + + located_attributes = { + name: 'Walmart' + } + located = Unidom::Party::Shop.create! located_attributes + + it_behaves_like 'Unidom::Geo::Concerns::AsLocator', model_attributes, located + + end + +end # spec/models/unidom/party/shop_spec.rb describe Unidom::Party::Shop, type: :model do context do