Sha256: 95a00eec1adf679c708592cfab0fc7fe2f039c280925d3a9728f52ddff6d8da9

Contents?: true

Size: 300 Bytes

Versions: 23

Compression:

Stored size: 300 Bytes

Contents

require 'spec_helper'

describe AgileProxy::Handler do
  let(:handler) { Class.new { include AgileProxy::Handler }.new }
  it '#handle_request raises an error if not overridden' do
    expect(handler.call(nil)).to eql([500, {}, 'The handler has not overridden the handle_request method!'])
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
agile-proxy-0.1.4 spec/unit/agile_proxy/handlers/handler_spec.rb
agile-proxy-0.1.2 spec/unit/agile_proxy/handlers/handler_spec.rb
agile-proxy-0.1.0 spec/unit/agile_proxy/handlers/handler_spec.rb