X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbd88d893f3c3fce9cafd666b94396988646d81f..e3054fc15ac0fcc124700e80f44c1b9a180472d8:/test/controllers/message_controller_test.rb diff --git a/test/controllers/message_controller_test.rb b/test/controllers/message_controller_test.rb index 8a7ae70de..930341f29 100644 --- a/test/controllers/message_controller_test.rb +++ b/test/controllers/message_controller_test.rb @@ -63,7 +63,7 @@ class MessageControllerTest < ActionController::TestCase get :new, :params => { :display_name => recipient_user.display_name } assert_response :success assert_template "new" - assert_select "title", "OpenStreetMap | Send message" + assert_select "title", "Send message | OpenStreetMap" assert_select "form[action='#{new_message_path(:display_name => recipient_user.display_name)}']", :count => 1 do assert_select "input#message_title", :count => 1 assert_select "textarea#message_body", :count => 1 @@ -89,7 +89,7 @@ class MessageControllerTest < ActionController::TestCase end assert_response :success assert_template "new" - assert_select "title", "OpenStreetMap | Send message" + assert_select "title", "Send message | OpenStreetMap" assert_select "form[action='#{new_message_path(:display_name => recipient_user.display_name)}']", :count => 1 do assert_select "input#message_title", :count => 1 do assert_select "[value='Test Message']" @@ -117,7 +117,7 @@ class MessageControllerTest < ActionController::TestCase end assert_response :success assert_template "new" - assert_select "title", "OpenStreetMap | Send message" + assert_select "title", "Send message | OpenStreetMap" assert_select "form[action='#{new_message_path(:display_name => recipient_user.display_name)}']", :count => 1 do assert_select "input#message_title", :count => 1 do assert_select "[value='Test Message']" @@ -145,7 +145,7 @@ class MessageControllerTest < ActionController::TestCase end assert_response :success assert_template "new" - assert_select "title", "OpenStreetMap | Send message" + assert_select "title", "Send message | OpenStreetMap" assert_select "form[action='#{new_message_path(:display_name => recipient_user.display_name)}']", :count => 1 do assert_select "input#message_title", :count => 1 do assert_select "[value='']" @@ -244,7 +244,7 @@ class MessageControllerTest < ActionController::TestCase get :reply, :params => { :message_id => unread_message.id } assert_response :success assert_template "new" - assert_select "title", "OpenStreetMap | Re: #{unread_message.title}" + assert_select "title", "Re: #{unread_message.title} | OpenStreetMap" assert_select "form[action='#{new_message_path(:display_name => user.display_name)}']", :count => 1 do assert_select "input#message_title[value='Re: #{unread_message.title}']", :count => 1 assert_select "textarea#message_body", :count => 1