diff --git a/src/TinyLogger-Tests/TinyLoggerTest.class.st b/src/TinyLogger-Tests/TinyLoggerTest.class.st index f02872f..9bf0f88 100644 --- a/src/TinyLogger-Tests/TinyLoggerTest.class.st +++ b/src/TinyLogger-Tests/TinyLoggerTest.class.st @@ -226,6 +226,17 @@ TinyLoggerTest >> testExecuteRecordedAsBlock2 [ ifTrue: [ log ensureDelete ] ] ] +{ #category : 'tests' } +TinyLoggerTest >> testExecuteRecordedAsBlockStillExecuteUserBlockIfNoLoggerIsPresent [ + + | log bool | + bool := false. + log := 'testFileForTinyLogger.log' asFileReference. + [ + logger execute: [ bool := true ] recordedAs: [ 'this is a test' ]. + self assert: bool ] ensure: [ (log isNotNil and: [ log exists ]) ifTrue: [ log ensureDelete ] ] +] + { #category : 'tests' } TinyLoggerTest >> testExecuteRecordedAsKeepRightIndentation [