>
>
> I'm confused - you're using assert_generates to test thing's that
> don't get generated? Wouldn't you use assert_recognizes in that case,
> in which case you would treat it like any other route:
>
> { :post => "ipn" }.should route_to("payment#pin")
>
>
yes. my bad. this was due to the fact that the code uses
url_for(controller: "payment", action: "ipn")
everywhere. so the tests also reflect this fact.
was curious as to why rspec does not use assert_generates and
assert_routing. which got cleared :-)
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rspec/-/9nXkcbIpiPQJ.
For more options, visit https://groups.google.com/groups/opt_out.