Sha256: a9392ba7046e5c133bddb45b698ec70a160ea7484a2951b31567d39239196bdd
Contents?: true
Size: 495 Bytes
Versions: 15
Compression:
Stored size: 495 Bytes
Contents
class MockOrangeBasedMiddleware < Orange::Middleware::Base def packet_call(packet) raise "It's over 9000 #{@core.class.to_s}s!" end end class MockMiddleware def initialize(app) end def call(env) raise "I'm in ur #{env[:test]}" end end class MockOrangeBasedMiddlewareTwo < Orange::Middleware::Base; end class MockOrangeDeathMiddleware < Orange::Middleware::Base def init(*args) opts = args.extract_options! raise "middleware_init with foo=#{opts[:foo]}" end end
Version data entries
15 entries across 15 versions & 1 rubygems