title: "wrong constant name" Error when using Turnip with Spork
body: <p>My Turnip test is working normally, but does not work when using <code>spork</code>.<br>
  I debugged with <code>pry</code> and I found that a missing <code>User</code>(class constant) causes the error. </p>
  
  <p>What should I do to fix?</p>
  
  <pre><code># working (good)
  bundle exec rspec spec/acceptance/features/*
  
  # not work (bad)
  bundle exec rspec spec/acceptance/features/* --drb
  </code></pre>
  
  <p>Here is the error when I run with the <code>--drb</code> option.</p>
  
  <pre><code>Failure/Error: Give a user logged in:
  NameError:
  wrong constant name #&lt;Module:0x007fd40a19c680&gt;
  # spec/acceptance/steps/user_steps.rb:8:in `block (2 levels) in &lt;module:UserSteps&gt;'
  # spec/acceptance/steps/user_steps.rb:7:in `each'
  </code></pre>
  
  <p>This is my spec_helper.rb.</p>
  
  <pre class="lang-ruby prettyprint-override"><code>require 'rubygems'
  require 'spork'
  #uncomment the following line to use spork with the debugger
  #require 'spork/ext/ruby-debug'
  
  Spork.prefork do
    ENV["RAILS_ENV"] ||= 'test'
    require File.expand_path("../../config/environment", __FILE__)
    require 'rspec/rails'
    require 'rspec/autorun'
    require 'capybara/dsl'
    require 'capybara/rspec'
    require 'capybara/rails'
    require 'turnip'
    require 'turnip/capybara'
    require 'shoulda/matchers/integrations/rspec'
  
    # Requires supporting ruby files with custom matchers and macros, etc,
    # in spec/support/ and its subdirectories.
    Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
    Dir.glob("spec/**/*steps.rb") { |f| load f, true }
  
    WebMock.disable_net_connect!(:allow_localhost =&gt; true)
  
    Capybara.run_server = true
    Capybara.app_host = 'http://localhost'
    Capybara.server_port = 8000
    Capybara.default_selector = :css
    Capybara.javascript_driver = :webkit
  
    OmniAuth.config.test_mode = true
  
    RSpec.configure do |config|
      # ## Mock Framework
      config.mock_with :rr
      config.infer_base_class_for_anonymous_controllers = false
      config.order = "random"
  
      config.include FactoryGirl::Syntax::Methods
      config.include Capybara::DSL, turnip: true
      config.include Rails.application.routes.url_helpers
  
      config.before(:suite) do
        DatabaseCleaner.strategy = :truncation
        DatabaseCleaner.clean_with(:truncation)
      end
  
      config.before(:each) do
        DatabaseCleaner.start
      end
  
      config.after(:each) do
        DatabaseCleaner.clean
      end
  
      config.before(:each, js: true) do
        headless = Headless.new
        headless.start
      end
    end
  end
  
  Spork.each_run do
    # This code will be run each time you run your specs.
  
  end
  </code></pre>
  
  <p>This is user_steps.rb.</p>
  
  <pre class="lang-ruby prettyprint-override"><code>1.  require_relative 'helper_steps'
  2. 
  3.  module UserSteps
  4.    include HelperSteps
  5. 
  6.    step 'users are registered :' do |table|
  7.      table.hashes.each do |row_hash|
  8.       create(:user, class_params_by_row_hash(User, row_hash))
  9.    end
  10.  end
  11. end
  </code></pre>
  
  <hr>
  
  <p>rails 3.2.13<br>
  rspec-rails 2.11.0<br>
  rspec 2.11.0<br>
  turnip 1.1.0<br>
  spork 1.0.0rc3  </p>