CONFIG_RU = (Rails.root + 'config.ru').to_s OUTER_APP = Rack::Builder.parse_file(CONFIG_RU).first class RackTest < ActiveSupport::TestCase include Rack::Test::Methods include Warden::Test::Helpers include LeapWebCore::AssertResponses def app OUTER_APP end end