spec/lib/billy/handlers/handler_spec.rb in puffing-billy-0.4.1 vs spec/lib/billy/handlers/handler_spec.rb in puffing-billy-0.5.0

- old
+ new

@@ -1,14 +1,14 @@ require 'spec_helper' describe Billy::Handler do - let(:handler) { Class.new{ include Billy::Handler }.new } + 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!' }) + 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 + expect(handler.handles_request?(nil, nil, nil, nil)).to be false end it 'responds to #reset' do expect(handler).to respond_to :reset end