[rspec-devel] discovering rails version
David Chelimsky
dchelimsky at gmail.com
Wed Apr 25 19:26:17 EDT 2007
On 4/25/07, Brandon Keepers <bkeepers at gmail.com> wrote:
>
> 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.
Good point. I've committed this to svn.
Cheers,
David
>
> Brandon
>
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
More information about the rspec-devel
mailing list