DigitPaint / roger

Roger is your friendly front-end development toolbox!
MIT License
4 stars 4 forks source link

Create test for verbosity options #14

Closed edwinvdgraaf closed 9 years ago

edwinvdgraaf commented 9 years ago

This pull request make the failing test that was added in https://github.com/DigitPaint/roger/issues/12, pass again. So the issue is that we rely on the Project to hold the passed class options, this however is not the case for the helpers which initiliaze their own project. What I did now is, I create a Cli::Base manualy and pass a --verbose on init time. After I added my tests, I invoke this initialised CLI. Which passes the --verbose to Project in its initialized, which is skipped in the helpers.

I guess we could redesign the helpers, seperate it as it tests several concerns or just don't test it at all. For now, I've added this one, for your consideration. It is however safe to merge, imo.