test/loggable_test.rb in semantic_logger-4.2.0 vs test/loggable_test.rb in semantic_logger-4.2.1

- old
+ new

@@ -53,21 +53,21 @@ it 'should allow mixins to call parent logger' do base = Base.new base.perform called = false - Base.logger.stub(:info, -> description { called = true if description == 'perform' }) do + Base.logger.stub(:info, ->(description) { called = true if description == 'perform' }) do base.perform end assert called, 'Did not call the correct logger' end it 'should allow child mixins to call parent logger' do subclass = Subclass.new subclass.process called = false - Subclass.logger.stub(:info, -> description { called = true if description == 'process' }) do + Subclass.logger.stub(:info, ->(description) { called = true if description == 'process' }) do subclass.process end assert called, 'Did not call the correct logger' end end @@ -97,8 +97,7 @@ assert_equal payload, log.payload end end end end - end end