Skip to content

Commit

Permalink
fix: update Pharo test
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion committed Sep 24, 2023
1 parent e38fe6f commit bf9266a
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ testAddLoadedClassesFrom
| mcOrganization |
self assert: true equals: (self spec loadedClasses isEmpty).

mcOrganization := MCOrganizationDefinition
packageName: 'SmalltalkCI'
tagNames: #(Core Tests).
mcOrganization := (MCOrganizationDefinition canUnderstand: #categories:)
ifTrue: [
"Squeak, Pharo < 12"
MCOrganizationDefinition categories: #('SmalltalkCI-Core' 'SmalltalkCI-Tests') ]
ifFalse: [
MCOrganizationDefinition
packageName: 'SmalltalkCI'
tagNames: #(Core Tests) ].

self spec addLoadedClassesFrom: {mcOrganization}.
self deny: (self spec loadedClasses isEmpty).
self assert: (self spec loadedClasses includes: SmalltalkCI).
self assert: (self spec loadedClasses includes: SmalltalkCITest)
self assert: (self spec loadedClasses includes: SmalltalkCI)

0 comments on commit bf9266a

Please sign in to comment.