[rspec-devel] discovering rails version

Brandon Keepers bkeepers at gmail.com
Wed Apr 25 14:47:39 EDT 2007


On Apr 25, 2007, at 6:01 AM, David Chelimsky wrote:

>>    ActionView::Base.const_defined?
>> ('DEFAULT_TEMPLATE_HANDLER_PREFERENCE') &&
>>      ActionView::Base::DEFAULT_TEMPLATE_HANDLER_PREFERENCE.include?
>> ('erb')
>>
>> DEFAULT_TEMPLATE_HANDLER_PREFERENCE was just added a couple weeks
>> ago, so it won't help for people on an older version of edge, but it
>> at least gives something to go off of.
>
> Keeping up w/ edge is challenging enough - there's no way we're
> supporting multiple versions of edge!!!!

I think it would be safe to assume that anyone using edge rails and  
generating specs will be using the latest version of edge.  If not,  
then they just wouldn't get generated .erb files.

Brandon




More information about the rspec-devel mailing list