require'spec_helper'describeGitlab::SnippetSearchResultsdolet!(:snippet){create(:snippet,content: 'foo',file_name: 'foo')}let(:results){described_class.new(Snippet.all,'foo')}describe'#snippet_titles_count'doit'returns the amount of matched snippet titles'doexpect(results.snippet_titles_count).toeq(1)endenddescribe'#snippet_blobs_count'doit'returns the amount of matched snippet blobs'doexpect(results.snippet_blobs_count).toeq(1)endendend