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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 03:09:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-11 03:09:09 +0300
commit47ebeef9122af96dc1fcd5c8e1ca0091f62fa113 (patch)
treef140bf150d6670b734e981851070e73c270fc45f /spec/models/commit_range_spec.rb
parent06bb4eba7828ce59fde366734828458c037059b4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/commit_range_spec.rb')
-rw-r--r--spec/models/commit_range_spec.rb25
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/models/commit_range_spec.rb b/spec/models/commit_range_spec.rb
index 4a524b585e1..245e47fa17b 100644
--- a/spec/models/commit_range_spec.rb
+++ b/spec/models/commit_range_spec.rb
@@ -137,29 +137,4 @@ describe CommitRange do
end
end
end
-
- describe '#has_been_reverted?' do
- let(:user) { create(:user) }
- let(:issue) { create(:issue, author: user, project: project) }
-
- it 'returns true if the commit has been reverted' do
- create(:note_on_issue,
- noteable: issue,
- system: true,
- note: commit1.revert_description(user),
- project: issue.project)
-
- expect_next_instance_of(Commit) do |commit|
- expect(commit).to receive(:reverts_commit?)
- .with(commit1, user)
- .and_return(true)
- end
-
- expect(commit1.has_been_reverted?(user, issue.notes_with_associations)).to eq(true)
- end
-
- it 'returns false if the commit has not been reverted' do
- expect(commit1.has_been_reverted?(user, issue.notes_with_associations)).to eq(false)
- end
- end
end