diff --git a/src/Microdown-Blog-Tests/MicSingleSummarizerTest.class.st b/src/Microdown-Blog-Tests/MicSingleSummarizerTest.class.st index fddad1e1..caab4091 100644 --- a/src/Microdown-Blog-Tests/MicSingleSummarizerTest.class.st +++ b/src/Microdown-Blog-Tests/MicSingleSummarizerTest.class.st @@ -221,7 +221,7 @@ MicSingleSummarizerTest >> testWithFromFileNil [ micSingleSummarizer verifyFromFile: root. - self assert: root fromFile equals: 'fakedFile' + self assert: root fromFile base equals: 'fakedFile' ] { #category : 'tests' } diff --git a/src/Microdown/MicRootBlock.class.st b/src/Microdown/MicRootBlock.class.st index 160b58eb..829299d4 100644 --- a/src/Microdown/MicRootBlock.class.st +++ b/src/Microdown/MicRootBlock.class.st @@ -38,10 +38,10 @@ MicRootBlock >> fromFile [ ] { #category : 'accessing' } -MicRootBlock >> fromFile: aFile [ +MicRootBlock >> fromFile: aFileReference [ "Store the file from which the document was built" - self propertyAt: #file put: aFile + self propertyAt: #file put: (aFileReference ifNotNil: [aFileReference asFileReference]) ] { #category : 'accessing' }