Sha256: dcba45368fd6f16e3d6bb08ef9b3fcaa0f6605291a6d9edd03705963bea9e68c

Contents?: true

Size: 586 Bytes

Versions: 42

Compression:

Stored size: 586 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 MockOrangeBasedMiddlewareThree < Orange::Middleware::Base
  def stack_init
  end
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

42 entries across 42 versions & 3 rubygems

Version Path
orange-more-0.7.3 spec/orange-core/mock/mock_middleware.rb
orange-core-0.7.1 spec/orange-core/mock/mock_middleware.rb
orange-more-0.7.2 spec/orange-core/mock/mock_middleware.rb
orange-more-0.7.1 spec/orange-core/mock/mock_middleware.rb
orange-core-0.7.0 spec/orange-core/mock/mock_middleware.rb
orange-more-0.6.5 spec/orange-core/mock/mock_middleware.rb
orange-more-0.6.4 spec/orange-core/mock/mock_middleware.rb
orange-more-0.6.3 spec/orange-core/mock/mock_middleware.rb
orange-more-0.6.2 spec/orange-core/mock/mock_middleware.rb
orange-more-0.6.0 spec/orange-core/mock/mock_middleware.rb
orange-core-0.6.0 spec/orange-core/mock/mock_middleware.rb
orange-more-0.5.8 spec/orange-core/mock/mock_middleware.rb
orange-core-0.5.9 spec/orange-core/mock/mock_middleware.rb
orange-core-0.5.8 spec/orange-core/mock/mock_middleware.rb
orange-more-0.5.7 spec/orange-core/mock/mock_middleware.rb
orange-core-0.5.5 spec/orange-core/mock/mock_middleware.rb
orange-core-0.5.3 spec/orange-core/mock/mock_middleware.rb
orange-0.5.5 spec/orange-core/mock/mock_middleware.rb
orange-0.5.4 spec/orange-core/mock/mock_middleware.rb
orange-0.5.3 spec/orange-core/mock/mock_middleware.rb