Test event geocoding using region code

This commit is contained in:
echarp 2017-07-06 14:27:08 +02:00
parent 3b0925da1d
commit e2af7fbcb2

View File

@ -118,9 +118,8 @@ class EventTest < ActiveSupport::TestCase
test 'full address' do
@event.address = 'hello'
@event.city = 'world'
# Region is no longer used for geocoding..;
# @event.region.name = 'all'
# assert_equal 'hello, world', @event.full_address
assert_equal 'hello, world, Alsace', @event.full_address
@event.region.name = 'here'
@event.region.code = 'xyz'
assert_equal 'hello, world, here, xyz', @event.full_address
end
end