Skip to content

Commit

Permalink
Review ReClassNotCategorizedRuleTest>>#testRule
Browse files Browse the repository at this point in the history
Fix #16645
  • Loading branch information
astares committed May 14, 2024
1 parent 4b0c39f commit 71fa2ef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/General-Rules-Tests/ReClassNotCategorizedRuleTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@ ReClassNotCategorizedRuleTest >> testAllClassesAreNotTagged [
{ #category : 'tests' }
ReClassNotCategorizedRuleTest >> testRule [

| classCatorized classNotCatorized critiques |
classCatorized := classFactory make: [ :builder |
| classCategorized classNotCategorized critiques |
classCategorized := classFactory make: [ :builder |
builder
tag: 'aTag';
package: 'aPackage' ].
classNotCatorized := classFactory make: [ :builder |
classNotCategorized := classFactory make: [ :builder |
builder package: 'aPackage' ].
critiques := self myCritiquesOnClass: classNotCatorized.
critiques := self myCritiquesOnClass: classNotCategorized.
self assert: critiques size equals: 1
]

{ #category : 'tests' }
ReClassNotCategorizedRuleTest >> testRuleNotViolated [

| classCatorized anotherClassCatorized critiques |
classCatorized := classFactory make: [ :builder |
| classCategorized anotherClassCategorized critiques |
classCategorized := classFactory make: [ :builder |
builder
tag: 'aTag';
package: 'aPackage' ].
anotherClassCatorized := classFactory make: [ :builder |
anotherClassCategorized := classFactory make: [ :builder |
builder
tag: 'aTag';
package: 'aPackage' ].
critiques := self myCritiquesOnClass: anotherClassCatorized.
critiques := self myCritiquesOnClass: anotherClassCategorized.
self assertEmpty: critiques
]

0 comments on commit 71fa2ef

Please sign in to comment.