Skip to content

Commit fc185e0

Browse files
committed
Remove deprecated call to #asClass
This floods the tests logs
1 parent cc92465 commit fc185e0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Moose-Core-Tests/MooseModelDescriptionTest.class.st

+10-10
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ MooseModelDescriptionTest >> testOppositeOfOppositePropertyIsMyself [
5757

5858
{ #category : #tests }
5959
MooseModelDescriptionTest >> testOppositePropertyExist [
60-
| allSelector |
61-
62-
allSelector := SystemNavigation new allMethods select: [:e | e hasPragmaNamed: #FMProperty:type:opposite: ].
6360

64-
self assert: (allSelector reject: [ :s || pragma |
65-
pragma := self msePropertyPragmaFor: s.
66-
[ pragma arguments second asClass includesSelector: pragma arguments third ]
67-
on: NotFound
68-
do: [ true ] "type: is not a class, e.g. FM3.Property"
69-
]) size
70-
equals: 0.
61+
| allSelector |
62+
allSelector := SystemNavigation new allMethods select: [ :e | e hasPragmaNamed: #FMProperty:type:opposite: ].
7163

64+
self
65+
assert: (allSelector reject: [ :s |
66+
| pragma |
67+
pragma := self msePropertyPragmaFor: s.
68+
[ (self class environment at: pragma arguments second) includesSelector: pragma arguments third ]
69+
on: NotFound
70+
do: [ "type: is not a class, e.g. FM3.Property" true ] ]) size
71+
equals: 0
7272
]

0 commit comments

Comments
 (0)