moonglum / exogenesis

Build your dotfile installer, updater and teardown
MIT License
19 stars 8 forks source link

Add missing unit tests for passengers #33

Closed moonglum closed 10 years ago

moonglum commented 10 years ago

Add unit tests for the passengers. Please check off when done:

moonglum commented 10 years ago

Could you add the unit tests for your Font passenger @bitboxer? Then we're done with this ticket!

bitboxer commented 10 years ago

Will do.

moonglum commented 10 years ago

Cool :smile:

bitboxer commented 10 years ago

Arg...I tried for half an hour to understand how test_construct rspec tries to do it's stuff, but I failed. I will now use normal tempdir stuff :disappointed:

moonglum commented 10 years ago

Why do you need that? Don't you want to isolation test it?

bitboxer commented 10 years ago

There are two options:

a) mock everything file related or b) create a temp directory with fonts in it and let the stuff work on that

I prefer the later because you have to mock less. I don't like tests that mock too much. The executor mocking is not what I like to do. Feels like writing the implementation again. If I change one line in the tested code, the expect executor stuff is falling apart.

moonglum commented 10 years ago

Ok, let’s discuss testing in general after 0.3 :smile_cat:

bitboxer commented 10 years ago

Jep. Would love some insights on that!