Chris Kutler | 9 Oct 01:10
Favicon

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

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.

C
Erno Mononen | 9 Oct 17:39
Favicon

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

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, Martin may have more to say.

Erno
Martin Krauskopf | 11 Oct 09:38
Favicon

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

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.
Chris Kutler | 11 Oct 23:39
Favicon

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

I think it is fine as is. I just wanted to make sure I got the wording 
correct. There are so few directories that its being there is very 
noticeable. The only place where I see an issue is with older versions 
of RSpec in conjunction with ZenTest's autotest. In RSpec 1.1.5 and 
later, the absence or presence of this folder makes no difference. 
Instead you use an environment variable to make Autotest run the spec 
tests. At least that is how it works for me.

Martin Krauskopf wrote:
> 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 
(Continue reading)


Gmane