Skip to content

Commit 4b1ca7d

Browse files
committed
minor refactoring of global state in tests
If global, then really global.
1 parent fbd781f commit 4b1ca7d

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

packages/SwaLint-Tests.package/SLPlugInTestExtended.class/instance/setUp.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ setUp
77

88
testDictionary := (Dictionary new).
99
testRunner := SLTestRunner new
10-
testEnvironment: (SLTestCase dummyEnvironment copy);
10+
testEnvironment: self class dummyEnvironment copy;
1111
testDictionary: testDictionary.
1212

1313
self resetTestSystem

packages/SwaLint-Tests.package/SLPlugInTestExtended.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"plugIn:" : "MB 7/22/2014 12:25",
99
"plugInClass" : "MB 7/22/2014 12:25",
1010
"resetTestSystem" : "MT 7/23/2014 22:36",
11-
"setUp" : "ct 12/22/2024 05:08" } }
11+
"setUp" : "ct 10/4/2025 02:43" } }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
running
22
setUp
33

4-
testRunner := SLTestRunner new testEnvironment: (SLTestCase dummyEnvironment copy).
4+
testRunner := SLTestRunner new testEnvironment: self class dummyEnvironment copy.

packages/SwaLint-Tests.package/SLPluginTest.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
},
44
"instance" : {
55
"printResults:expected:if:" : "AT 2/7/2008 07:53",
6-
"setUp" : "ct 12/22/2024 05:08",
6+
"setUp" : "ct 10/4/2025 02:43",
77
"test:on:expectedResults:" : "NR 1/16/2008 18:11",
88
"test:on:expectedResults:debug:" : "BD 6/21/2018 14:25" } }

packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testRuleFor.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ testRuleFor
44
| plugin rule |
55
plugin := SLSmallLintPlugIn new.
66
rule := plugin ruleFor:
7-
(SLTestCase dummyEnvironment testDataFor: #smallLintClassInstVarNotInitialized).
7+
(self class dummyEnvironment testDataFor: #smallLintClassInstVarNotInitialized).
88

99
self assert: [
1010
rule name = 'Has class instance variables but no initialize method' ].

packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"testReturnInEnsure" : "LS 6/16/2018 14:18",
5959
"testReturnsBooleanAndOther" : "LS 6/16/2018 14:18",
6060
"testReturnsIfTrue" : "LS 6/16/2018 14:18",
61-
"testRuleFor" : "NA 7/29/2015 16:42",
61+
"testRuleFor" : "ct 10/4/2025 02:43",
6262
"testSearchingLiteral" : "LS 6/16/2018 14:19",
6363
"testSendsDifferentSuper" : "LS 6/16/2018 14:19",
6464
"testSendsUnknownMessageToGlobal" : "LS 6/16/2018 14:19",

packages/SwaLint-Tests.package/SLTestCase.class/properties.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"category" : "SwaLint-Tests",
33
"classinstvars" : [
4-
"DummyEnvironment" ],
5-
"classvars" : [
64
],
5+
"classvars" : [
6+
"DummyEnvironment" ],
77
"commentStamp" : "NR 1/28/2008 17:09",
88
"instvars" : [
99
],

0 commit comments

Comments
 (0)