X Tutup
Skip to content

Commit dce1ac7

Browse files
author
Johan Brichau
committed
Workaround for bug when registering the testclass with a name, it was registered in Undeclared
1 parent 72efc26 commit dce1ac7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
accessing-code
22
defineClass: aClassSymbol superclass: aSuperSymbol
33
| class |
4+
45
SystemVersion current major >= 12
56
ifTrue:[
67
class := factory make: [ :aBuilder |
78
aBuilder
8-
name: aClassSymbol;
9+
"name: aClassSymbol;"
910
superclass: (Smalltalk at: aSuperSymbol);
1011
package: self category ] ]
1112
ifFalse:[
@@ -14,8 +15,8 @@ defineClass: aClassSymbol superclass: aSuperSymbol
1415
classVariableNames: ''''
1516
poolDictionaries: ''''
1617
category: ''' , self category , ''''.
17-
class := model classNamed: aClassSymbol ].
18-
environment
18+
class := model classNamed: aClassSymbol ].
19+
environment
1920
addClass: class;
2021
addClass: class theMetaClass.
2122
^ class

repository/Grease-Tests-Slime.package/GRSlimeTest.class/instance/tearDown.st

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ tearDown
44
super tearDown.
55
factory cleanUp.
66
SystemVersion current major >= 12 ifFalse:[
7-
(Smalltalk organization listAtCategoryNamed: self category) do:[ :e |
8-
SmalltalkImage current removeClassNamed: e ].
9-
Smalltalk organization
10-
removeCategory: self category ]
7+
(Smalltalk organization listAtCategoryNamed: self category) do:[ :e | SmalltalkImage current removeClassNamed: e ].
8+
Smalltalk organization removeCategory: self category ]

0 commit comments

Comments
 (0)
X Tutup