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: publishing_cuke_helpers.rb
    path of file: ./repos/diaspora/features/support
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module PublishingCukeHelpers
  def write_in_publ
    
  def submit_publisher
    txt = find("#publisher #status_message_text").value
    find("#publisher .btn-primary").click
    # wait for the publisher to be closed
    expect(find("#publisher")["class"]).to include("closed")
    # wait for the content to appear
    expect(find("#main-stream")).to have_content(visible_text_from_markdown(txt))
  end