```ruby
require 'contest'
require 'jsmin'
require 'tilt'
require 'stylus'
require 'rack/test'
require 'yaml'
require 'mocha'
require 'debugger'

require File.expand_path('../app/app.rb', __FILE__)

class UnitTest < Test::Unit::TestCase
  include Rack::Test::Methods

  class App < Sinatra::Base
    set :root, File.expand_path('../app', __FILE__)
    enable :raise_errors
    disable :show_exceptions
  end

  def app
    Main
  end

  def d
    puts "-"*80
    puts "#{last_response.status}"
    y last_response.original_headers
    puts "-"*80
    puts ""
    puts last_response.body.gsub(/^/m, '    ')
    puts ""
  end

  def body
    last_response.body.strip
  end

  def r(*a)
    File.join app.root, *a
  end

  def assert_includes(haystack, needle)
    assert haystack.include?(needle), "Expected #{haystack.inspect} to include #{needle.inspect}."
  end
end

```

Use new mocha setup, fix deprecated warning
user
```ruby
require 'contest'
require 'jsmin'
require 'tilt'
require 'stylus'
require 'rack/test'
require 'yaml'
require 'mocha/setup'
require 'debugger'

require File.expand_path('../app/app.rb', __FILE__)

class UnitTest < Test::Unit::TestCase
  include Rack::Test::Methods

  class App < Sinatra::Base
    set :root, File.expand_path('../app', __FILE__)
    enable :raise_errors
    disable :show_exceptions
  end

  def app
    Main
  end

  def d
    puts "-"*80
    puts "#{last_response.status}"
    y last_response.original_headers
    puts "-"*80
    puts ""
    puts last_response.body.gsub(/^/m, '    ')
    puts ""
  end

  def body
    last_response.body.strip
  end

  def r(*a)
    File.join app.root, *a
  end

  def assert_includes(haystack, needle)
    assert haystack.include?(needle), "Expected #{haystack.inspect} to include #{needle.inspect}."
  end
end

```
assistant