> 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
bad habit mostly. to test cases where "url_for" is used eg. in rails3.0 routes like, post "ipn" => "payment#ipn" do not generate a url_helper automatically and url_for is used instead of adding the url_helper On Jul 26, 3:30 pm, David Chelimsky <[email protected]> wrote: > On Thu, Jul 26, 2012 at 6:07 AM, deepak kannan <[email protected]> > 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/RoutingA... > > > 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 > > [email protected] > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > [email protected]http://rubyforge.org/mailman/listinfo/rspec-users -- deepak -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
