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-25 21:45:56 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-04-25 21:45:56 +0300
commit92c681a53c5565eddae51dc0bede07541c3eb0c5 (patch)
treea2de3d60882ec3aea13c6e9cccf0ee3b9d94ffa8 /spec/models/commit_range_spec.rb
parent2207e5a6c9cacdc97878f23015a2257b39af9d48 (diff)
Remove CommitRange#to_a
Diffstat (limited to 'spec/models/commit_range_spec.rb')
-rw-r--r--spec/models/commit_range_spec.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/spec/models/commit_range_spec.rb b/spec/models/commit_range_spec.rb
index fe7ede92bc9..fc2982b9a33 100644
--- a/spec/models/commit_range_spec.rb
+++ b/spec/models/commit_range_spec.rb
@@ -11,33 +11,6 @@ describe CommitRange do
expect { described_class.new("Foo") }.to raise_error
end
- describe '#to_a' do
- context 'when valid' do
- let(:commit1) { double('commit1') }
- let(:commit2) { double('commit2') }
-
- before do
- expect(range).to receive(:valid_commits?).and_return(true)
- allow(range).to receive(:commit_from).and_return(commit1)
- allow(range).to receive(:commit_to).and_return(commit2)
- end
-
- it 'returns an Array of Commits' do
- expect(range.to_a).to eq [commit1, commit2]
- end
- end
-
- context 'when invalid' do
- before do
- expect(range).to receive(:valid_commits?).and_return(false)
- end
-
- it 'returns [nil, nil]' do
- expect(range.to_a).to eq [nil, nil]
- end
- end
- end
-
describe '#to_s' do
it 'is correct for three-dot syntax' do
expect(range.to_s).to eq "#{sha_from[0..7]}...#{sha_to[0..7]}"