X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/561f2f694adc8ac57011eac1eec5929425276c59..78ff250c1db6429bc09b95b5c061898ef770426c:/test/functional/diary_entry_controller_test.rb diff --git a/test/functional/diary_entry_controller_test.rb b/test/functional/diary_entry_controller_test.rb index 724fb48a5..88c2aeb9a 100644 --- a/test/functional/diary_entry_controller_test.rb +++ b/test/functional/diary_entry_controller_test.rb @@ -104,7 +104,7 @@ class DiaryEntryControllerTest < ActionController::TestCase end assert_select "body", :count => 1 do assert_select "div#content", :count => 1 do - assert_select "h1", "New Diary Entry", :count => 1 + assert_select "h1", :text => "New Diary Entry", :count => 1 # We don't care about the layout, we just care about the form fields # that are available assert_select "form[action='/diary/new']", :count => 1 do @@ -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