[rspec-users] namespaced controllers

Nathan Sutton nathan.sutton at gmail.com
Wed Dec 12 18:59:10 EST 2007


Well put.

Nathan Sutton
fowlduck at gmail.com
rspec edge revision 3052
rspec_on_rails edge revision 3049
rails 2.0.1

On Dec 12, 2007, at 4:37 PM, David Chelimsky wrote:

> On Dec 12, 2007 5:03 AM, Thijs Cadier <thijs at 80beans.com> wrote:
>>
>> Has anybody been taking a look at this issue? I'm getting a little  
>> annoyed
>> touching the namespaced controllers before running the specs all  
>> the time
>> :-).
>
> What annoys me is the relative inverse ratio of level of whining to
> level of contribution.
>
> If you want it done quick, stop whining and contribute a patch.
>
>>
>>
>>
>>
>> Scott Taylor-6 wrote:
>>>
>>>>
>>>> Figured out how to reproduce it. It depends on load order, I guess.
>>>>
>>>> Given the files:
>>>>  spec/controllers/foo_controller_spec.rb
>>>>  spec/controllers/admin/foo_controller_spec.rb
>>>>
>>>> The specs do nothing but hit the FooController#show and
>>>> Admin::FooController#index actions and expect the right render.
>>>>
>>>> If I touch admin/foo_controller_spec.rb, the specs pass.
>>>>
>>>> If I touch foo_controller_spec.rb, the specs for  
>>>> Admin::FooController
>>>> fail with UnknownAction exceptions, since ::FooController has no  
>>>> index
>>>> action defined.
>>>>
>>>> Problem occurs with autotest and rake spec, but not with ./script/
>>>> spec spec.
>>>>
>>>> This is happening with the current latest trunk versions, rails  
>>>> r8200
>>>> and rspec r2980.
>>>
>>> Can you put this in the tracker?  I'm likely to forget about it
>>> otherwise.
>>>
>>> Scott
>>>
>>> _______________________________________________
>>> rspec-users mailing list
>>> rspec-users at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>>
>>>
>>
>> --
>> View this message in context: http://www.nabble.com/namespaced-controllers-tp13919259p14292651.html
>> Sent from the rspec-users mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list