Test helpers not found #207

PizzaPill opened this Issue Aug 17, 2012 · 1 comment


None yet

2 participants


I have isolated this error, please take a look at the example here: https://github.com/PizzaPill/spork-error

If I add a module to the rails /config/initializers that skips a before_filter spork doesn't find the methods in /app/helpers/application_helper.rb any more.

To demonstrate this do the following:

  1. Run specs with rspec spec/ - specs pass
  2. Run spork & rspec - specs fail
  3. Comment out line #12 in /config/initializer/skip_before_filter.rb and run spork & rspec - specs pass

I opened this new issue altough I'm aware of spork issue #109 and spork-rails issue #6 because I don't know if they are related and/or if I simply did something wrong in the configuration/setup.


about the relateds, I am with the problem to load helpers here...

if I include each helper, it works, but I would know some clean way to do this

Spork.prefork do
  ENV["RAILS_ENV"] ||= 'test'
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'
  require 'shoulda/matchers/integrations/rspec'
  include ApplicationHelper
  include GraphicsHelper

I try to remove all before_filter calls at initializers, but this not make effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment