Fixed test
This commit is contained in:
parent
3527d1ff2b
commit
3dc331c613
1 changed files with 1 additions and 2 deletions
|
@ -315,7 +315,6 @@ describe Project do
|
|||
|
||||
it { is_expected.to delegate_method(:empty_repo?).to(:repository) }
|
||||
it { is_expected.to delegate_method(:members).to(:team).with_prefix(true) }
|
||||
it { is_expected.to delegate_method(:count).to(:forks).with_prefix(true) }
|
||||
it { is_expected.to delegate_method(:name).to(:owner).with_prefix(true).with_arguments(allow_nil: true) }
|
||||
end
|
||||
|
||||
|
@ -2473,7 +2472,7 @@ describe Project do
|
|||
it 'returns the number of forks' do
|
||||
project = build(:project)
|
||||
|
||||
allow(project.forks).to receive(:count).and_return(1)
|
||||
expect_any_instance_of(Projects::ForksCountService).to receive(:count).and_return(1)
|
||||
|
||||
expect(project.forks_count).to eq(1)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue