title: Cucumber-rails required outside of env.rb. The rest of loading is being defered until env.rb is called
body: <p>What does this <strong>env.rb error</strong> mean, pls?</p>
  
  <pre><code>root# rake db:migrate
  WARNING: Cucumber-rails required outside of env.rb.  The rest of loading is being defered until env.rb is called.
    To avoid this warning, move 'gem cucumber-rails' under only group :test in your Gemfile
  </code></pre>
  
  <p>The gemfile is here:</p>
  
  <pre><code>source 'http://rubygems.org'
  
  gem 'rails', '3.1.0'
  
  # Bundle edge Rails instead:
  # gem 'rails',     :git =&gt; 'git://github.com/rails/rails.git'
  
  # for Heroku deployment - as described in Ap. A of ELLS book
  group :development, :test do
    gem 'sqlite3'
    gem 'ruby-debug19', :require =&gt; 'ruby-debug'
    gem 'cucumber-rails'
    gem 'cucumber-rails-training-wheels'
    gem 'database_cleaner'
    gem 'capybara'
    gem 'launchy'
  end
  group :production do
  #  gem 'pg'
  end
  
  # Gems used only for assets and not required
  # in production environments by default.
  group :assets do
    gem 'therubyracer'              
    gem 'sass-rails', "  ~&gt; 3.1.0"
    gem 'coffee-rails', "~&gt; 3.1.0"
    gem 'uglifier'
  end
  
  gem 'jquery-rails'
  
  # Use unicorn as the web server
  # gem 'unicorn'
  
  # Deploy with Capistrano
  # gem 'capistrano'
  
  # To use debugger
  gem 'haml'
  </code></pre>