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

Version Path
orange-0.1.8 spec/orange-core/mock/mock_middleware.rb
orange-0.1.7 spec/orange-core/mock/mock_middleware.rb
orange-0.1.4 spec/orange-core/mock/mock_middleware.rb
orange-0.1.2 spec/orange-core/mock/mock_middleware.rb
orange-0.1.0 spec/orange-core/mock/mock_middleware.rb
orange-0.0.15 spec/orange-core/mock/mock_middleware.rb
orange-0.0.14 spec/orange-core/mock/mock_middleware.rb
orange-0.0.13 spec/orange/mock/mock_middleware.rb
orange-0.0.12 spec/orange/mock/mock_middleware.rb
orange-0.0.10 spec/orange/mock/mock_middleware.rb
orange-0.0.8 spec/orange/mock/mock_middleware.rb
orange-0.0.7 spec/orange/mock/mock_middleware.rb
orange-0.0.6 spec/orange/mock/mock_middleware.rb
orange-0.0.5 spec/orange/mock/mock_middleware.rb
orange-0.0.4 spec/orange/mock/mock_middleware.rb