Sha256: 7d5cfe17d1badd5b411639f5e6b4c875c115bf2129a330172a2beeff18ba5d88

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

require 'rack'

module CurbFu
  module Test
    class Server
      def self.serve(&blk)
        Rack::Builder.app do
          run lambda { |env|
            CurbFu::Test::RequestLogger.log(env)
            yield(env) 
          }
        end
      end
  
      def self.error!(message)
        puts message
        raise StandardError, message
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
curb-fu-0.6.2 lib/curb-fu/test/server.rb
curb-fu-0.6.1 lib/curb-fu/test/server.rb
curb-fu-0.6.0 lib/curb-fu/test/server.rb
curb-fu-0.4.4 lib/curb-fu/test/server.rb
curb-fu-0.4.3 lib/curb-fu/test/server.rb