pearl-core / pearl

Pearl is a lightweight package manager for automating reproducible environments between different systems (Linux and OSX). It can be used for dotfiles, plugins, programs and any form of code accessible via git.
GNU General Public License v3.0
227 stars 24 forks source link

Small refactor for avoiding DRY in test-package using git mocks #47

Closed fsquillace closed 8 years ago

fsquillace commented 8 years ago

git mock function is kind of repeated inside the test-package file. It would be possible to provide a smarter mock defined at the beginning of the module instead of having it repeated on each unit tests.

fsquillace commented 8 years ago

https://github.com/pearl-core/pearl/commit/17c07248a3d915912831d18a46fffb9a91a6661a