[rspec-users] "rake spec:doc" returns NO NAME (due to --dry-run) for each specify block

aslak hellesoy aslak.hellesoy at gmail.com
Sun Sep 16 06:52:04 EDT 2007


This happens if you have it blocks with no name. RSpec tries to
generate names based on the code inside, but with dry run it isn't
executed, so it can't.

But maybe you don't have empty it blocks? I'm just guessing here...

Aslak

On 9/16/07, Christopher D. Pratt <chrisdpratt at gmail.com> wrote:
> I went ahead and moved to the trunk versions of RSpec and Spec:Rails because
> I wanted to try out the new Story Runner feature. However, when I tried to
> do "rake spec:doc", I got the following:
>
> AccountController
> - NO NAME (Because of --dry-run)
>
> AccountHelper
> - NO NAME (Because of --dry-run)
>
> User (in general)
> - NO NAME (Because of --dry-run)
> - NO NAME (Because of --dry-run)
> - NO NAME (Because of --dry-run)
> - NO NAME (Because of --dry-run)
> - NO NAME (Because of --dry-run)
> - NO NAME (Because of --dry-run)
>
> I emptied everything out of my spec.opts file just to make sure it wasn't
> some setting there causing problems, but that still had no effect. I haven't
> submitted this as a bug yet because I'm still holding out the possibility
> that I'm simply doing something wrong.
>
> Thanks,
>
> Chris Pratt
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list