require 'spec_helper'
describe 'GitRepository::History' do
let(:userinfo) do
{
time: Time.now
}
end
context 'with this lib' do
context 'without bash' do
after do
end
let!(:commit_change1) { repository.commit_file(userinfo, 'Some other content1', filepath, 'Change') }
let!(:commit_other1) { repository.commit_file(userinfo, 'Other content1', 'file2.txt', 'Other File: Add') }
let!(:commit_other2) { repository.commit_file(userinfo, 'Other content2', 'file2.txt', 'Other File: Change1') }
let!(:commit_other3) { repository.commit_file(userinfo, 'Other content3', 'file2.txt', 'Other File: Change2') }
let!(:commit_change2) { repository.commit_file(userinfo, 'Some other content2', filepath, 'Re-Change') }
[
].reverse
end
[
]
end
it 'should make no difference between explicitly starting at HEAD or not specifying the start-oid' do
end
end
end
it 'should make no difference between explicitly starting at HEAD or not specifying the start-oid' do
end
end
end
end
end
end
end
end
end
end
end
end
it 'should have the correct commits with an offset and limit ending before reaching the "init" commit' do
end
end
it 'should have the correct commits with an offset and limit ending after reaching the "init" commit' do
end
end
end
end
it 'should have the correct commits with an offset and limit ending after reaching the "init" commit' do
to eq([commit_add1])
end
end
end
end
end
[ [commit_add1, commit_change1],
[commit_delete1, commit_delete2] ].each do |previous, current|
end
end
end
end
end
after do
end
# See script for details
"#{m}\n"
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
it do
end
end
end
end