#95 open
Phlip

generate controller -S is creating obsolete controllers

Reported by Phlip | March 30th, 2008 @ 12:32 PM | in 1.0 (Nearish Future)

The -S option still creates this:

Merb::Controller.new @in.req, @in.env,{:controller => 'Test', :action => 'foo'}, @res

The modern controllers seem to use only an options hash.

Also, the generator spews forth no mock_request.rb file. That would seem to be the core of controller testing - mocking the server so you don't need to crawl thru a real one just to test! I had to scrape it off of Google Codesearch...

Here's some ASCII Art, to help us recover from this ticket:

#\ #.:#

#\ #.:# ^^^^^

#\ #.:# }OvO{

##.:# {| |}

#..# \| |/

#..# \ _ /

#..# | |

#..#>=======d=b=======

#..#

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket