Test event geocoding using region code
This commit is contained in:
parent
3b0925da1d
commit
e2af7fbcb2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user