Closed moonglum closed 10 years ago
Could you add the unit tests for your Font passenger @bitboxer? Then we're done with this ticket!
Will do.
Cool :smile:
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:
Why do you need that? Don't you want to isolation test it?
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.
Ok, let’s discuss testing in general after 0.3 :smile_cat:
Jep. Would love some insights on that!
Add unit tests for the passengers. Please check off when done: