You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: messages_controller_test.rb
    path of file: ./repos/openstreetmap-website/test/controllers
    
    the code of the file until where you have to start completion: require "test_helper"

class MessagesControllerTest < ActionDispatch::IntegrationTest
  ##
  # test all routes which lead to this controller
  def test_routes
    assert_routing(
      { :path => "/messages/inbox", :method => :get },
      { :controller => "messages", :action => "inbox" }
    )
    assert_routing(
      { :path => "/messages/outbox", :method => :get },
      { :controller => "messages", :action => "outbox" }
    )
    assert_routing(
      { :path => "/message/new/username", :method => :get },
      { :controller => "messages", :actio
    
  def test_new_get_with_params
    # Login as a normal user
    user = create(:user)
    recipient_user = create(:user)
    session_for(user)

    # Check that we can't send a message from a GET request
    assert_difference "ActionMailer::Base.deliveries.size", 0 do
      assert_difference "Message.count", 0 do
        perform_enqueued_jobs do
          get new_message_path(:display_name => recipient_user.display_name,
                               :message => { :title => "Test Message", :body => "Test message body" })
        end
      end
    end
    assert_response :success
    assert_template "new"
    assert_select "title", "Send message | OpenStreetMap"
    assert_select "form[action='/messages']", :count => 1 do
      assert_select "input[type='hidden'][name='display_name'][value='#{recipient_user.display_name}']"
      assert_select "input#message_title", :count => 1 do
        assert_select "[value='Test Message']"
      end
      assert_select "textarea#message_body", :text => "Test message body", :count => 1
      assert_select "input[type='submit'][value='Send']", :count => 1
    end
  end