[rspec-users] Error in executing controller spec

David Chelimsky dchelimsky at gmail.com
Wed May 20 10:15:16 EDT 2009


On Wed, May 20, 2009 at 2:47 AM, Amit Kulkarni <lists at ruby-forum.com> wrote:
> David Chelimsky wrote:
>> On Wed, May 20, 2009 at 1:47 AM, Amit Kulkarni <lists at ruby-forum.com>
>> wrote:
>>>>> script/spec spec/controllers/channels_controller_spec1.rb
>>>>
>>>> Hey It worked thanks a lot. :-)
>>>>
>>>> Can you tell me the difference why it was not running earlier and now it
>>>> is running.Just for my understanding.
>>>
>>> It is not the case that i will always run spec from the root project.So
>>> if i want to run from spec/controllers direcrtory then what should i do
>>> since i am getting the error.
>>
>> Unfortunately, you're going to have to run it from the project root
>> because that's the only it works, apparently. You can file a bug
>> report at http://rspec.lighthouseapp.com if you're interested.
>>
>> Cheers,
>> David
>
> Thank a lot.
> But is the case that all controller specs are run from the root
> directory.
> I had had written spec models and it runs fine from inside the spec
> directory.
>
> I will sure file a ticket on the site u mentioned.
> Also it will be good if i get to know the reason behind this :-)

It's not by design. It's a bug.


More information about the rspec-users mailing list