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 bdd5428..8c37804 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