Sha256: 45134381d7120e7459834ccec25f785d736243fdb03a13c68551465e768d2db7

Contents?: true

Size: 516 Bytes

Versions: 29

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'

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

  it '#handles_request returns false by default' do
    expect(handler.handles_request?(nil, nil, nil, nil)).to be false
  end

  it 'responds to #reset' do
    expect(handler).to respond_to :reset
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
puffing-billy-3.0.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.4.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.4.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.3.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.3.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.2.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.1.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.1.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-2.0.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-1.1.3 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-1.1.2 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-1.1.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-1.1.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-1.0.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.12.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.11.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.11.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.10.1 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.10.0 spec/lib/billy/handlers/handler_spec.rb
puffing-billy-0.9.2 spec/lib/billy/handlers/handler_spec.rb