debian-mirror-gitlab/features/steps/shared/search.rb

12 lines
300 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
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