From c11d3c5789f2d77059b6d132af7b9fda9651ede5 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Thu, 23 Apr 2015 13:52:35 -0400 Subject: Remove param from CommitRange#to_s --- spec/models/commit_range_spec.rb | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'spec/models/commit_range_spec.rb') 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 -- cgit v1.2.1