require'spec_helper'describe'Snippets',feature: truedocontext'when the project has snippets'dolet(:project){create(:empty_project,:public)}let!(:snippets){create_list(:project_snippet,2,:public,author: project.owner,project: project)}beforedoallow(Snippet).toreceive(:default_per_page).and_return(1)visitsnippets_path(username: project.owner.username)endit_behaves_like'paginated snippets'endend