Skip to content

Commit

Permalink
Issue 913 use fileReference in fromfile
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.moutte.etu committed Sep 16, 2024
1 parent a2e06ef commit f853e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Microdown-Blog-Tests/MicSingleSummarizerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ MicSingleSummarizerTest >> testWithFromFileNil [

micSingleSummarizer verifyFromFile: root.

self assert: root fromFile equals: 'fakedFile'
self assert: root fromFile base equals: 'fakedFile'
]

{ #category : 'tests' }
Expand Down
4 changes: 2 additions & 2 deletions src/Microdown/MicRootBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit f853e22

Please sign in to comment.