Sha256: 9b7207241975d14ef9b946d98e31248000d73974471aeebeea793ee2f1f35650
Contents?: true
Size: 986 Bytes
Versions: 3
Compression:
Stored size: 986 Bytes
Contents
require_relative '../lib/depengine/provider/git' require_relative '../lib/depengine/processor/local_execute' describe '#history' do let(:git) do g = Provider::Git.new g.repository_local_dir = '.' g end context 'no parameters given' do it 'falls back to all history' do expect(Processor).to receive(:local_execute).once.with(['git log --oneline ']).and_return('ok') git.history end end context 'one revision given' do it 'falls back to history between HEAD and given revision' do r1 = '4223abc' expect(Processor).to receive(:local_execute).once.with(['git log --oneline 4223abc..HEAD']).and_return('ok') git.history(r1) end end context 'two revisions given' do it 'uses both to get commits betweem them' do r1, r2 = '4223abc', 'caffe42' expect(Processor).to receive(:local_execute).once.with(['git log --oneline 4223abc..caffe42']).and_return('ok') git.history(r1, r2) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
depengine-3.0.23 | spec/git_spec.rb |
depengine-3.0.22 | spec/git_spec.rb |
depengine-3.0.21 | spec/git_spec.rb |