```ruby
# -*- encoding: utf-8 -*-

require 'rubygems'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rspec'
require 'rack/test'
require 'rack/policy'

module DummyApp
  def self.call(env)
    Thread.current[:last_env] = env
    [200, {'Content-Type' => 'text/plain'}, ['ok']]
  end
end

module TestHelpers
  def app
    @app || mock_app(DummyApp)
  end

  def mock_app(app=nil, opts={}, &block)
    app = block if app.nil? and block.arity == 1
    if app
      mock_app do
        use Rack::Policy::CookieLimiter, opts
        run app
      end
    else
      @app = Rack::Lint.new Rack::Builder.new(&block).to_app
    end
  end

  def with_headers(headers)
    proc { [200, {'Content-Type' => 'text/plain' }.merge(headers), ['ok']] }
  end

  def with_status(status=nil)
    proc { [status || 200, {'Content-Type' => 'text/plain' }, ['ok']] }
  end
end

RSpec.configure do |config|
  config.order = :rand
  config.expect_with :rspec, :stdlib
  config.include Rack::Test::Methods
  config.include TestHelpers
end
```

Remove craft from spec helper.
user
```ruby
# coding: utf-8

require 'rack/test'
require 'rack/policy'

module DummyApp
  def self.call(env)
    Thread.current[:last_env] = env
    [200, {'Content-Type' => 'text/plain'}, ['ok']]
  end
end

module TestHelpers
  def app
    @app || mock_app(DummyApp)
  end

  def mock_app(app=nil, opts={}, &block)
    app = block if app.nil? and block.arity == 1
    if app
      mock_app do
        use Rack::Policy::CookieLimiter, opts
        run app
      end
    else
      @app = Rack::Lint.new Rack::Builder.new(&block).to_app
    end
  end

  def with_headers(headers)
    proc { [200, {'Content-Type' => 'text/plain' }.merge(headers), ['ok']] }
  end

  def with_status(status=nil)
    proc { [status || 200, {'Content-Type' => 'text/plain' }, ['ok']] }
  end
end

RSpec.configure do |config|
  config.order = :rand
  config.expect_with :rspec, :stdlib
  config.include Rack::Test::Methods
  config.include TestHelpers
end
```
assistant