]> git.openstreetmap.org Git - rails.git/commitdiff
Fixup tests for changes to multi-editor functionality
authorTom Hughes <tom@compton.nu>
Mon, 29 Nov 2010 21:19:01 +0000 (21:19 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 29 Nov 2010 21:19:54 +0000 (21:19 +0000)
test/functional/site_controller_test.rb

index bdd54288e4f20c174f45033d44ceac1653e7e7bd..8c378046e89f54ff04bc70ca44fd4b3e6c75890d 100644 (file)
@@ -50,12 +50,20 @@ class SiteControllerTest < ActionController::TestCase
 
   # and when they have...
   def test_edit_with_preference
+    user = users(:public_user)
+    user.preferred_editor = "potlatch"
+    user.save!
+
+    get(:edit, nil, { 'user' => user.id })
+    assert_response :success
+    assert_template :partial => "_potlatch", :count => 1
+
     user = users(:public_user)
     user.preferred_editor = "josm"
     user.save!
 
     get(:edit, nil, { 'user' => user.id })
     assert_response :success
-    assert_template :partial => "_josm", :count => 1
+    assert_template "index"
   end    
 end