title: Rails+Capybara+poltergeist ArgumentError: rack-test requires a rack application, but none was given
body: <p>I just started playing with Capycabra+poltergeist and after execution of my Capy test <code>rspec ./spec/features/test_spec.rb</code>
  I got the following error:</p>
  
  <pre><code> Failure/Error: visit '/item/new'
   ArgumentError: rack-test requires a rack application, but none was given
  </code></pre>
  
  <p>Also I have a few standard  rspec tests and whenever I try to excute all tests, rspec tests are passed successfully, but only the capy test fails with weird error </p>
  
  <pre><code>ActionView::Template::Error: couldn't find file 'jquery.min' (in app/assets/javascripts/application.js:13)
  </code></pre>
  
  <p>Which leads me to the confusion.</p>
  
  <p>I have viewed several similar threads on stackoverflow in some cases the error is about  missing <strong>config.include Capybara::DSL in the spec_helper.rb</strong> or incorrect location of tests. I made appropriate changes, but it doesn't work, the error is still the same.</p>
  
  <p>My spec_helper.rb file</p>
  
  <pre><code>require 'capybara'
  require 'capybara/dsl'
  require 'capybara/poltergeist'
  
  Capybara.javascript_driver = :poltergeist
  
  RSpec.configure do |config|
    config.include Capybara::DSL
  end
  </code></pre>
  
  <p>Full Version of spec_helper: <a href="http://pastebin.com/qkANfu39" rel="noreferrer">http://pastebin.com/qkANfu39</a></p>
  
  <p>Test file:</p>
  
  <pre><code>#spec/features/test_spec.rb
  
  require 'spec_helper'
  describe 'accessibility of webpage' do
    it 'should access web page' do
      visit '/item/new'
      expect(page).to have_content("Something")
    end
  
  end
  </code></pre>
  
  <p>Thoughts?</p>