Closed mayacr86 closed 9 years ago
@mayacr86 Did you come up with a workaround to this?
Hi,
I committed an quick example using scalatest in c9226b30c0f09e2f708cc09c641331265a2fb833. It should also work with specs2.
The only slightly ugly is overriding petsWithOwner
to inject a TestProbe. It could be done nicer either by using a constructor argument for the petsWithOwner
Props in RestRouting or by using the Cake Pattern
Awesome. Thanks a lot. On Mar 12, 2015 9:21 PM, "Ian Forsey" notifications@github.com wrote:
Hi,
I committed an quick example using scalatest in c9226b3 https://github.com/NET-A-PORTER/spray-actor-per-request/commit/c9226b30c0f09e2f708cc09c641331265a2fb833. It should also work with specs2.
The only slightly ugly is overriding petsWithOwner to inject a TestProbe. It could be done nicer either by using a constructor argument for the petsWithOwner Props in RestRouting or by using the Cake Pattern
— Reply to this email directly or view it on GitHub https://github.com/NET-A-PORTER/spray-actor-per-request/issues/2#issuecomment-78711058 .
great! thanks! :)
It has been very difficult for me to create a testSpec for a particular route. I would like to run something as simple as this (but don't know how, can't find any good reference):