• Micael Bergeron's avatar
    Refactor the `SearchResults` constructors to be aligned · 1e5cc59b
    Micael Bergeron authored
    This commit streamlines all the initializers to simplify the
    inheritance logic for:
    
    - `Gitlab::SearchResults`
        -> `…::ProjectSearchResults`
        -> `…::GroupSearchResults`
        -> `…::SnippetSearchResults`
    
    - `Gitlab::Elastic::SearchResults`
        -> `…::ProjectSearchResults`
        -> `…::GroupSearchResults`
    
    The tests were also deduplicated and streamlined.
    1e5cc59b
project_search_results_spec.rb 5.05 KB