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>2019-12-18 18:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-18 18:08:03 +0300
commitccf37fd3eca15cd5f55c1eba3b28d2798808d357 (patch)
tree925471acb29c7cc080a522b1d2db6b06e55616dd /spec/models/commit_spec.rb
parent79d62647bcfad69d7272020acb7d8be5ee5df003 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 1c1b550c69b..930ec889206 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -63,6 +63,20 @@ describe Commit do
end
end
+ describe '#diff_refs' do
+ it 'is equal to itself' do
+ expect(commit.diff_refs).to eq(commit.diff_refs)
+ end
+
+ context 'from a factory' do
+ let(:commit) { create(:commit) }
+
+ it 'is equal to itself' do
+ expect(commit.diff_refs).to eq(commit.diff_refs)
+ end
+ end
+ end
+
describe '#author', :request_store do
it 'looks up the author in a case-insensitive way' do
user = create(:user, email: commit.author_email.upcase)