deepak kannan
2012-Jul-26 10:07 UTC
[rspec-users] rspec-rails does not have a matcher for assert_generates
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 can of-course call ''assert_generates'' from rspec -- best, deepak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120726/86d752eb/attachment.html>
David Chelimsky
2012-Jul-26 10:30 UTC
[rspec-users] rspec-rails does not have a matcher for assert_generates
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