Sha256: 574e89e2de115daad7881b5625f32a4ff5b62d8fab03e571327e729e16fc79fd
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffing-billy-0.4.1 | spec/lib/billy/handlers/handler_spec.rb |
puffing-billy-0.4.0 | spec/lib/billy/handlers/handler_spec.rb |
puffing-billy-0.3.0 | spec/lib/billy/handlers/handler_spec.rb |