[rspec-devel] [ rspec-Feature Requests-9786 ] infer controller and helper names from the described type

noreply at rubyforge.org noreply at rubyforge.org
Tue Apr 3 23:48:55 EDT 2007


Feature Requests item #9786, was opened at 2007-04-03 15:16
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=9786&group_id=797

Category: rails plugin
Group: None
>Status: Closed
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
>Assigned to: David Chelimsky (dchelimsky)
Summary: infer controller and helper names from the described type

Initial Comment:
Now that we can do this:

  describe SomeThingController do

it seems a shame to require this:

    controller_name :some_thing

Controller Behavoiurs could be smart enough to see if a type is passed to #describe, and if it is a subclass of ActionController::Base, in which case it doesn't need to require controller_name

Same goes for Helper Behaviours.

----------------------------------------------------------------------

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-04 03:48

Message:
Added in branches/0.9-dev (rev 1685)

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=9786&group_id=797


More information about the rspec-devel mailing list