Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/commit_range_spec.rb')
-rw-r--r--spec/models/commit_range_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_range_spec.rb b/spec/models/commit_range_spec.rb
index 2d1c1bd1049..474d60ff091 100644
--- a/spec/models/commit_range_spec.rb
+++ b/spec/models/commit_range_spec.rb
@@ -18,8 +18,8 @@ describe CommitRange do
before do
expect(range).to receive(:valid_commits?).and_return(true)
- allow(range).to receive(:commit).with(sha_from).and_return(commit1)
- allow(range).to receive(:commit).with(sha_to).and_return(commit2)
+ allow(range).to receive(:commit_from).and_return(commit1)
+ allow(range).to receive(:commit_to).and_return(commit2)
end
it 'returns an Array of Commits' do