[Rspec-devel] RSpec on Rails and Rails Engines

aslak hellesoy aslak.hellesoy at gmail.com
Thu Aug 17 20:38:42 EDT 2006

On 8/17/06, Daniel Siemssen <daniel at dr-siemssen.de> wrote:
> Why do you have the require lines for controller_mixin.rb and
> rspec_on_rails.rb in your init.rb and not in the spec_helper.rb? When
> these require lines are in the init.rb they cause errors for Rails
> Engines users because rspec_on_rails.rb requires 'application'. Since
> application might have some include lines like 'include myengine' and
> since the rspec_on_rails plugin gets loaded before any engine, you'll
> certainly run into troubles when loading your rails environment.
> So, my question is, can you put these lines into spec_helper.rb and if
> not please tell me why.

It's been a month or two since I worked on this so my memory is a bit
rusty on this. Do you have a patch that you would like us to


> Keep up the good work!
> Daniel
> _______________________________________________
> Rspec-devel mailing list
> Rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel

More information about the Rspec-devel mailing list