[rspec-devel] [ rspec-Bugs-7591 ] When controller is missing action method, Rspec reports misleading & quot; no id found& quot;
noreply at rubyforge.org
noreply at rubyforge.org
Thu Jan 18 14:15:51 EST 2007
Bugs item #7591, was opened at 2007-01-05 14:09
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7591&group_id=797
Category: rails plugin
Group: None
Status: Deleted
Resolution: None
Priority: 3
Submitted By: Clint Bishop (norobotdiving)
Assigned to: Nobody (None)
>Summary: When controller is missing action method, Rspec reports misleading "no id found"
Initial Comment:
Under Rspec 0.7.5 on Rails Edge (Jan 03 2007):
The following will fail (correctly) if no "my_action" method is defined upon the my_controller controller.
To error report will read "no id found" - the standard message for a method_missing failure.
However, the error report is misleading, since we're expecting the ActionController to raise an UnknownAction exception.
Snippet:
context "Some context" do
controller_name 'my_controller'
specify "some spec" do
xhr :post, :my_action, :a_value => true
end
end
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-18 19:12
Message:
Who set this to deleted? Please indicate why it was changed.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=7591&group_id=797
More information about the rspec-devel
mailing list