Fix tests to cope with stricter route enforcement in rails 2.3.6
[rails.git] / test / functional / diary_entry_controller_test.rb
index 0fa9ea97f276c9810dc41d262e78f750de203e26..88c2aeb9a4a2fd1612c8adc9741ef0d69efe0fa5 100644 (file)
@@ -235,7 +235,7 @@ class DiaryEntryControllerTest < ActionController::TestCase
   def test_edit_diary_entry_i18n
     @request.cookies["_osm_username"] = users(:normal_user).display_name
 
-    get(:edit, {:id => diary_entries(:normal_user_entry_1).id}, {'user' => users(:normal_user).id})
+    get :edit, {:display_name => users(:normal_user).display_name, :id => diary_entries(:normal_user_entry_1).id}, {'user' => users(:normal_user).id}
     assert_response :success
     assert_select "span[class=translation_missing]", false, "Missing translation in edit diary entry"
   end