73e848850c
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
16 lines
476 B
Ruby
16 lines
476 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'Snippets' do
|
|
context 'when the project has snippets' do
|
|
let(:project) { create(:project, :public) }
|
|
let!(:snippets) { create_list(:project_snippet, 2, :public, author: project.owner, project: project) }
|
|
before do
|
|
allow(Snippet).to receive(:default_per_page).and_return(1)
|
|
visit snippets_path(username: project.owner.username)
|
|
end
|
|
|
|
it_behaves_like 'paginated snippets'
|
|
end
|
|
end
|