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: map_steps.rb
    path of file: ./repos/LocalSupport/features/step_definitions
    
    the code of the file until where you have to start completion: Then(/^I should see an infowindow when I click on the map
    
def check_info_box_link_opens_in_new_page(tbl, selector)
  VolunteerOp.where(title: tbl)
      .map {|volop| [volop.id, volop.organisation.name, volop.title,
                     smart_truncate(volop.description, 44), volop.organisation.slug]}
      .each do |id, name, title, desc, org_friendly_id|
    all(selector).map do |list_item|
      list_item.trigger(:mouseover) if list_item.first('a').text == title
    end
    expect { click_link(name) }.to change(&number_of_windows).by 1
  end
end