[rspec-devel] [ rspec-Feature Requests-9786 ] infer controller and helper names from the described type
noreply at rubyforge.org
noreply at rubyforge.org
Sun Apr 8 17:27:58 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-08 21:27
Message:
Note - you MUST use the type to make this work:
describe SomeType do
etc
NOT THIS:
describe "SomeType" do
----------------------------------------------------------------------
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