[rspec-users] Loading problem with engine extending ActionController::Base
Michael Schuerig
michael at schuerig.de
Mon Jul 5 16:21:22 EDT 2010
On Monday 05 July 2010, David Chelimsky wrote:
> On Jul 3, 2010, at 4:40 PM, Michael Schuerig wrote:
> > On Saturday 03 July 2010, David Chelimsky wrote:
> >> On Jul 3, 2010, at 3:34 PM, Michael Schuerig wrote:
> > [double loading of Rails framework classes]
> >
> >>> require File.dirname(__FILE__) + "/../config/environment" unless
> >>> defined?(Rails)
> >>
> >> This is from an old version of the spec_helper. Be sure to follow
> >> the post-install instructions (that's what they're there for) and
> >> run "script/rails generate rspec:install".
> >
> > Indeed, you're right. I compared old and new visually (only) and
> > didn't notice the difference. As I have some stuff in
> > spec_helper.rb, I don't like to overwrite it.
> >
> >> The newer generated spec_helper uses File.expand_path for this
> >> require, so it doesn't load the file a second time. I believe that
> >> will fix this issue for you.
> >
> > Unfortunately and surprisingly not.
>
> Did you try both 'rake spec' and 'bundle exec rspec spec'?
bundle exec rspec spec
does not make a difference.
> Would you do me a favor and raise
> this as an issue in http://github.com/rspec/rspec-rails/issues? I
> won't be able to address this for a bit, and that's the best way to
> ensure it stays on the radar.
There you go:
http://github.com/rspec/rspec-rails/issues/#issue/118
Michael
--
Michael Schuerig
mailto:michael at schuerig.de
http://www.schuerig.de/michael/
More information about the rspec-users
mailing list