Skip to content

Commit

Permalink
Merge pull request #704 from moosetechnology/asClass
Browse files Browse the repository at this point in the history
Remove deprecated call to #asClass
  • Loading branch information
jecisc authored Jan 30, 2024
2 parents cc92465 + fc185e0 commit 1198afd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Moose-Core-Tests/MooseModelDescriptionTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ MooseModelDescriptionTest >> testOppositeOfOppositePropertyIsMyself [

{ #category : #tests }
MooseModelDescriptionTest >> testOppositePropertyExist [
| allSelector |

allSelector := SystemNavigation new allMethods select: [:e | e hasPragmaNamed: #FMProperty:type:opposite: ].

self assert: (allSelector reject: [ :s || pragma |
pragma := self msePropertyPragmaFor: s.
[ pragma arguments second asClass includesSelector: pragma arguments third ]
on: NotFound
do: [ true ] "type: is not a class, e.g. FM3.Property"
]) size
equals: 0.
| allSelector |
allSelector := SystemNavigation new allMethods select: [ :e | e hasPragmaNamed: #FMProperty:type:opposite: ].

self
assert: (allSelector reject: [ :s |
| pragma |
pragma := self msePropertyPragmaFor: s.
[ (self class environment at: pragma arguments second) includesSelector: pragma arguments third ]
on: NotFound
do: [ "type: is not a class, e.g. FM3.Property" true ] ]) size
equals: 0
]

0 comments on commit 1198afd

Please sign in to comment.