-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fixed method that removed part from parts in Mime\Message #3638
Conversation
Please add a test case |
How do you want me to test that it's working? It's now not removing parts. Do you want me to write a check to see if parts were removed? |
Yes, because without test the risk of to have a regression is high. I.e someone do some PR for optimization and opts for change your current() again |
@RWOverdijk I agree with @Maks3w -- incremental improvements need tests so we can ensure we don't introduce regressions later. I realize that the MIME component is not well-tested -- but with improvements like this, we can add tests, and make it more solid going forward. And many thanks in advance! |
I'll add a test when I find a small bit of time. Currently I have no time. On 5 feb. 2013, at 17:33, weierophinney notifications@github.com wrote:
|
- Wrote unit test that failed before changes, passes afterwards
I've written a test and included it on merge. |
Thanks. Sorry for not adding the test. I'll add it next time :) |
- Wrote unit test that failed before changes, passes afterwards
Now using current() to get the single mime part so we don't unset it for future use.