85b29c1c2f
Probably useful as we often move these files to "new" files.
16 lines
362 B
Ruby
16 lines
362 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe Projects::ForksCountService do
|
|
describe '#count' do
|
|
it 'returns the number of forks' do
|
|
project = build(:project, id: 42)
|
|
service = described_class.new(project)
|
|
|
|
allow(service).to receive(:uncached_count).and_return(1)
|
|
|
|
expect(service.count).to eq(1)
|
|
end
|
|
end
|
|
end
|