alexliesenfeld / httpmock

HTTP mocking library for Rust
https://httpmock.rs
MIT License
472 stars 42 forks source link

When / Then are now private in 0.6.0 #47

Closed jszwedko closed 3 years ago

jszwedko commented 3 years ago

Hi all,

It seems like in 0.6.0 When and Then were made private. We had previously used these types when defining our test cases: https://github.com/timberio/vector/blob/f85d2fbe70b1f40d1e3275b6173cda15ace80696/src/kubernetes/api_watcher.rs#L234-L257

Is it possible to re-expose these types?

Thank you!

alexliesenfeld commented 3 years ago

Hi and thanks for creating this issue!

You are correct, it seems both types were unexported during recent refactorings. I created a fix release for this (0.6.2). @jszwedko Could you please verify that it fixes your issue?

jszwedko commented 3 years ago

Awesome, thanks for the quick fix @alexliesenfeld ! I can verify 0.6.2 works for us.