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:
authorRobert Speicher <rspeicher@gmail.com>2015-04-23 20:52:35 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-25 21:41:06 +0300
commitc11d3c5789f2d77059b6d132af7b9fda9651ede5 (patch)
tree563c18af3564503ea349997905a373c32620e06a /spec/models/commit_range_spec.rb
parent81a21e57961356a0924b7b1529696f79eded4630 (diff)
Remove param from CommitRange#to_s
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