@wasnotrice, could you elaborate a bit about what you don't like. Is it the
checking caller for rspec, or the env variable ?
On May 4, 2013 7:10 PM, "Eric Watson" <notifications@github.com> wrote:

> In lib/shoes/configuration.rb:
>
> >        end
> >
> >        def backend_name
> > -        @backend_name
> > +        @backend_name ||= ENV.fetch('SHOES_BACKEND', default_backend).to_sym
> > +      end
> > +
> > +      def default_backend
> > +        if caller.any? {|path| path =~ /rspec/}
>
> I don't love this. Let's figure out a way to hook into the code for
> testing from the outside.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/shoes/shoes4/pull/250/files#r4085299>
> .
>