Skip to content

Commit

Permalink
Remove not existing method for Pharo 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Oct 10, 2023
1 parent edade44 commit 5bbe3a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/Pyramid-Bloc/PyramidSaveModelVerifier.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ PyramidSaveModelVerifier class >> classPackageIsEqual [
class package name = model savingPackageName
ifTrue: [ true ]
ifFalse: [
class packageTag ifNil: [ false ] ifNotNil: [
class package name , '-' , class packageTag name
= model savingPackageName ] ] ]
class package classTags
detect: [ :tag | tag includesClass: class ]
ifFound: [ :tag |
class package name , '-' , tag name
= model savingPackageName ]
ifNone: [ false ].
] ]
ifAbsent: [ true ] ];
showBlock: [ :view | view showClassPackageIsNotEqualError ];
yourself
Expand Down
9 changes: 7 additions & 2 deletions src/Pyramid-Tests/PyramidSavingServiceTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,17 @@ PyramidSavingServiceTest >> testCanSave [
model savingClassName: self savingClass name.
model savingMethodName: 'aPyramidSavingMethod'.
model savingPackageName:
self savingClass package name , '-' , self savingClass packageTag name.
self savingClass package name , '-cases-plugin-save'.
self assert: self savingService canSave.

model savingClassName: self savingClass name.
model savingMethodName: 'aPyramidSavingMethod'.
model savingPackageName: self savingClass package name , 'notTheSame'.
model savingPackageName: self savingClass package name , 'notTheSamePackage'.
self deny: self savingService canSave.

model savingClassName: self savingClass name.
model savingMethodName: 'aPyramidSavingMethod'.
model savingPackageName: self savingClass package name , '-notTheSameTag'.
self deny: self savingService canSave
]

Expand Down

0 comments on commit 5bbe3a4

Please sign in to comment.