require 'bundler/setup' Bundler.require(:default) def app proc do |env| [200, { 'Content-Type' => 'text/html' }, 'Hello simple rack application!'] end end require 'rack/test' RSpec.configure do |config| config.include Rack::Test::Methods end describe 'example' do it 'should not run out of memoery' do get '/' last_response.should_not be_nil end it 'should not run out of memoery' do get '/' last_response.should == 'egg' end end