require 'spec_helper'
describe 'GitRepositoryDirectories' do
before do
end
after do
end
end
{ type: git_file.type, path: git_file.path }
type: :dir,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :file,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :dir,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :file,
},{
type: :file,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :dir,
},{
type: :file,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :file,
},{
type: :file,
}])
end
expect(repository.folder_contents(@commit_add3, '/')).to eq(repository.folder_contents(@commit_add3))
end
expect(repository.folder_contents(@commit_add3, '/')).to eq(repository.folder_contents(@commit_add3, nil))
end
end
{ type: git_file.type, path: git_file.path }
type: :dir,
},{
type: :file,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :file,
}])
end
end
{ type: git_file.type, path: git_file.path }
type: :file,
}])
end
end
end
before do
repository.files do |git_file|
files << [git_file.path, git_file.last_change[:oid]]
end
end
before do
files << [git_file.path, git_file.last_change[:oid]]
end
end
it do
[filepath1, @commit_add1],
[filepath2, @commit_add2],
[filepath3, @commit_add3] ])
end
end
end
end