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.rb20
1 files changed, 4 insertions, 16 deletions
diff --git a/spec/models/commit_range_spec.rb b/spec/models/commit_range_spec.rb
index 474d60ff091..8412c7d2140 100644
--- a/spec/models/commit_range_spec.rb
+++ b/spec/models/commit_range_spec.rb
@@ -39,24 +39,12 @@ describe CommitRange do
end
describe '#to_s' do
- context 'with short IDs' do
- it 'is correct for three-dot syntax' do
- expect(range.to_s).to eq "#{sha_from[0..7]}...#{sha_to[0..7]}"
- end
-
- it 'is correct for two-dot syntax' do
- expect(range2.to_s).to eq "#{sha_from[0..7]}..#{sha_to[0..7]}"
- end
+ it 'is correct for three-dot syntax' do
+ expect(range.to_s).to eq "#{sha_from[0..7]}...#{sha_to[0..7]}"
end
- context 'with full IDs' do
- it 'is correct for three-dot syntax' do
- expect(range.to_s(short: false)).to eq "#{sha_from}...#{sha_to}"
- end
-
- it 'is correct for two-dot syntax' do
- expect(range2.to_s(short: false)).to eq "#{sha_from}..#{sha_to}"
- end
+ it 'is correct for two-dot syntax' do
+ expect(range2.to_s).to eq "#{sha_from[0..7]}..#{sha_to[0..7]}"
end
end