diff options
author | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 09:14:55 +0100 |
---|---|---|
committer | Francisco Lopez <fjlopez@gitlab.com> | 2017-12-01 18:32:13 +0100 |
commit | 3dc331c6131040b8c2a0e682c34e5a19c803e000 (patch) | |
tree | d7276bbb5d6a76557e31475adf2d526bfbb4a18d | |
parent | 3527d1ff2bc06ba38e820b300e49f817d2833379 (diff) | |
download | gitlab-ce-3dc331c6131040b8c2a0e682c34e5a19c803e000.tar.gz |
Fixed test
-rw-r--r-- | spec/models/project_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 521b7bd70ba..a069ae784af 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -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 |