Commit 3861f942a7eb760069e11b013a5a980b4b3e44cc
1 parent
b0cf80d7
Exists in
master
and in
28 other branches
Fixing maps controller test
(ActionItem1256)
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
test/functional/maps_controller_test.rb
| @@ -36,8 +36,13 @@ class MapsControllerTest < Test::Unit::TestCase | @@ -36,8 +36,13 @@ class MapsControllerTest < Test::Unit::TestCase | ||
| 36 | end | 36 | end |
| 37 | 37 | ||
| 38 | should 'dispĺay form for address with profile address' do | 38 | should 'dispĺay form for address with profile address' do |
| 39 | + env = Environment.default | ||
| 40 | + env.custom_person_fields = { 'city' => { 'active' => 'true' } } | ||
| 41 | + env.save! | ||
| 42 | + | ||
| 43 | + | ||
| 39 | get :edit_location, :profile => profile.identifier | 44 | get :edit_location, :profile => profile.identifier |
| 40 | - assert_tag :tag => 'input', :attributes => { :name => 'location' } | 45 | + assert_tag :tag => 'input', :attributes => { :name => 'profile_data[city]' } |
| 41 | end | 46 | end |
| 42 | 47 | ||
| 43 | end | 48 | end |