BigW Consortium Gitlab

search.rb 300 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
module SharedSearch
  include Spinach::DSL

  def search_snippet_contents(query)
    visit "/search?search=#{URI::encode(query)}&snippets=true&scope=snippet_blobs"
  end

  def search_snippet_titles(query)
    visit "/search?search=#{URI::encode(query)}&snippets=true&scope=snippet_titles"
  end
end