« Return to Thread: Did I get this RSpec folder info wrong or has it changed?

Re: Did I get this RSpec folder info wrong or has it changed?

by Martin Krauskopf :: Rate this Message:

Reply to Author | View in Thread

Erno Mononen wrote:

> Chris Kutler wrote:
>> The docs say that when you create a new ruby application....
>>
>> "If the project’s Ruby Platform has the RSpec gem in its repository,
>> you also get the RSpec folder."
>>
>> I am seeing that I get the RSpec folder regardless whether the RSpec
>> gem is in the repository.
>>
>> I just want to make sure it is ok to remove this sentence because it
>> is not true.
>
> Right, the spec folder is always created for plain Ruby projects (for
> Rails projects the above is still true). Not sure whether this a bug or
> feature in the Ruby project generator

Not sure what is better way. Something in between would be the best.
Since user might later install the RSpec or might switch to another
platform which has RSpec available. So seemed to me less harmless to
generate 'spec' directory always, rather then conditionally, based on
the RSpec gem presence.

Ideas, RFEs, welcomed as always.

        m.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Did I get this RSpec folder info wrong or has it changed?