Skip to content

Commit

Permalink
Add old API for older Pharo
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Oct 13, 2023
1 parent 1279ad8 commit c62d169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Hermes-Tests/HEInstallerDuplicationTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ HEInstallerDuplicationTest >> testCreatingADuplicatedSimpleTraitReplace [
exportedTrait packageName: newPackage.
[
self flag: #pharo11. "This is a hack caused by the package/tag/category mess that should be fixed in P12 release."
self packageOrganizer ensurePackage: newPackage.
self flag: #pahro11. "Update this when Pharo 12 will be the minimal version"
SystemVersion current major < 12
ifTrue: [ RPackageOrganizer default registerPackageNamed: newPackage ]
ifFalse: [ self packageOrganizer ensurePackage: newPackage ].
installer buildTrait: exportedTrait.

self assert: (Smalltalk at: #THEOneTestTraitNew) package name equals: newPackage ] ensure: [
Expand Down

0 comments on commit c62d169

Please sign in to comment.