title: Sinatra tests always 404'ing
body: <p>I have a very simple Sinatra app which I'm having trouble testing.</p>
  
  <p>Basically, every single request test returns a 404 when I know from testing in the browser that the request works fine.  Any ideas as to what the problem might be?</p>
  
  <p>test_helper.rb:</p>
  
  <pre><code>ENV["RACK_ENV"] = 'test'
  
  $: &lt;&lt; File.expand_path(File.dirname(__FILE__) + '/../lib')
  require 'app'
  Sinatra::Synchrony.patch_tests!
  
  class Test::Unit::TestCase
    include Rack::Test::Methods
  end
  </code></pre>
  
  <p>app_test.rb</p>
  
  <pre><code>require 'test_helper'
  class AppTest &lt; Test::Unit::TestCase 
    def app
      @app ||= Sinatra::Application
    end
    def test_it_says_hello
      get "/"
      assert_equal 200,  last_response.status
    end
  end
  </code></pre>
  
  <p>app.rb</p>
  
  <pre><code>$: &lt;&lt; 'config'
  require "rubygems" require "bundler"
  
  ENV["RACK_ENV"] ||= "development" 
  Bundler.require(:default, ENV["RACK_ENV"].to_sym) 
  require ENV["RACK_ENV"]
  
  class App &lt; Sinatra::Base   register Sinatra::Synchrony
    get '/' do
      status 200
      'hello, I\'m bat shit crazy and ready to rock'   
    end
  end
  </code></pre>
  
  <p>Gemfile</p>
  
  <pre><code>source :rubygems
  
  gem 'daemons'
  gem 'sinatra'
  gem 'sinatra-synchrony', :require =&gt; 'sinatra/synchrony' 
  gem 'resque'
  gem 'thin'
  
  group :test do
    gem 'rack-test', :require =&gt; "rack/test"
    gem 'test-unit', :require =&gt; "test/unit" 
  end
  </code></pre>
  
  <p>Why can I not get this normally very simple thing working?</p>