require'spec_helper'describe'Project 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)visitnamespace_project_snippets_path(project.namespace,project)endit_behaves_like'paginated snippets'endend