[rspec-users] rspec-rails does not have a matcher for assert_generates

David Chelimsky dchelimsky at gmail.com
Thu Jul 26 10:30:00 UTC 2012


On Thu, Jul 26, 2012 at 6:07 AM, deepak kannan <kannan.deepak at gmail.com> wrote:
> hi,
>
> rails minitest has assertions for assert_generates, assert_recognizes and
> assert_routing
>
> rpsec's "routes_to" delegates to assert_recognizes
> http://rubydoc.info/gems/rspec-rails/frames
>
> But there is no mention of assert_generates
> http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_generates
>
> why does rspec-rails not have a matcher for assert_generates ?

I never found assert_generates useful for the way I approach testing.
If you give me an example of how/when you'd use it I can try to
explain.

> i can of-course call 'assert_generates' from rspec
>
> --
> best,
> deepak
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list