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: merges_controller_test.rb
    path of file: ./repos/mushroom-observer/test/controllers/herbaria
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require("test_helper")

module Herbaria
  # tests of action to merge two herbaria
  class MergesControllerTest < FunctionalTestCase
    #
    
    def test_merge_by_record_nonowner
      marys = mary.create_personal_herbarium
      login("rolf")
      post(:create, params: { src: fundis.id, dest: marys.id })

      assert_redirected_to(
        emails_merge_request_path(
          type: :Herbarium, old_id: fundis.id, new_id: marys.id
        )
      )
    end