module Acme
  class Base < Sinatra::Base
    set :root, Dir.pwd
    set :views, 'app/views'
    set :erb, :escape_html => true
    set :static_cache_control, [:public, :max_age => (60 * 60)]

    enable :logging, :method_override, :static
    disable :dump_errors

    configure :test do
      disable :show_exceptions
    end

    helpers Helpers
  end
end

module Acme
  class Base < Sinatra::Base
    set :root, Dir.pwd
    set :views, 'app/views'
    set :erb, :escape_html => true
    set :static_cache_control, [:public, :max_age => (60 * 60)]

    enable :logging, :method_override, :static
    disable :dump_errors

    configure :test do
      set :show_exceptions, :after_handler
    end

    helpers Helpers
  end
end

Enable custom error handlers within tests
Enable custom error handlers within tests
