Displaying 2 results from an estimated 2 matches for "feedbackcontrol".
2006 Sep 29
0
Living Dangerously?
...should be an instance of <ThisNewController>
A simple trace in lib/rspec_on_rails.rb (around lines 43-48) shows the
following...
>>>>>looking for AccountController
>>>>>found #<AccountController:0xb74cff20>
(next test)
>>>>>looking for FeedbackController
>>>>>found #<AccountController:0xb74ce288>
>>>>>looking for FeedbackController
>>>>>found #<AccountController:0xb74ce288>
What really messes my brain is that the call to FeedbackController.new
is returning an AccountController. Ouch...
2006 Sep 29
0
Still living dangerously
5 seconds after my last post, I twigged why a call to
FeedbackController.new would return an AccountController - the
IntegrationTest must intercept the call and sure enough it does:
action_controller/integration,rb: 315-339 and rdebug shows that this is
indeed the cause.
I still don''t see how the intercept is established - I can''t see where
th...