Skip to content
Snippets Groups Projects
Commit 3dc331c6 authored by Francisco Javier López's avatar Francisco Javier López
Browse files

Fixed test

parent 3527d1ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment