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 d0eb162
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
testing
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 d0eb162

Please sign in to comment.