Navigation Menu

Skip to content

Commit

Permalink
Remove smalltalk refs in metacello
Browse files Browse the repository at this point in the history
  • Loading branch information
Alisu committed Sep 21, 2019
1 parent 5d335e9 commit 6e244d0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Expand Up @@ -124,9 +124,9 @@ MetacelloDictionaryRepositoryTest >> tearDown [
aGofer := Gofer new.
self tearDownPackages: aGofer.
aGofer references notEmpty ifTrue: [ aGofer metacelloUnload ].
Smalltalk globals removeKey: #Metacello_Gofer_Test_Repository ifAbsent: [ ].
Smalltalk globals removeKey: #Metacello_Configuration_Test_Repository ifAbsent: [ ].
Smalltalk globals removeKey: #Metacello_Configuration_Test_Alternate_Repository ifAbsent: [ ].
aTestEnvironment removeKey: #Metacello_Gofer_Test_Repository ifAbsent: [ ].
aTestEnvironment removeKey: #Metacello_Configuration_Test_Repository ifAbsent: [ ].
aTestEnvironment removeKey: #Metacello_Configuration_Test_Alternate_Repository ifAbsent: [ ].
self tempRepositories do: [ :repo | MCRepositoryGroup default removeIdenticalRepository: repo ].
MetacelloPlatform current reenableUndefinedSybolUpdates: undefinedSymbols.
finalWorkingCopyList := MCWorkingCopy allManagers collect: [ :each | each packageName ].
Expand Down
Expand Up @@ -16,6 +16,6 @@ MetacelloExternalScriptingTestCase >> tearDownRepositories [
MCRepositoryGroup default
removeIdenticalRepository:
(Smalltalk at: #'Metacello_XXX_Test_Repository' ifAbsent: [ ]).
Smalltalk globals removeKey: #'Metacello_Config_Test_Repository' ifAbsent: [ ].
Smalltalk globals removeKey: #'Metacello_XXX_Test_Repository' ifAbsent: [ ]
aTestEnvironment removeKey: #'Metacello_Config_Test_Repository' ifAbsent: [ ].
aTestEnvironment removeKey: #'Metacello_XXX_Test_Repository' ifAbsent: [ ]
]
8 changes: 4 additions & 4 deletions src/Metacello-TestsMC/MetacelloIssueTestCase.class.st
Expand Up @@ -97,12 +97,12 @@ MetacelloIssueTestCase >> tearDown [
ifTrue: [ aGofer metacelloUnload ].
MCRepositoryGroup default
removeIdenticalRepository:
(Smalltalk globals at: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ]);
(aTestEnvironment at: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ]);
removeIdenticalRepository:
(Smalltalk globals at: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ]);
(aTestEnvironment at: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ]);
yourself.
Smalltalk globals removeKey: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ].
Smalltalk globals removeKey: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ].
aTestEnvironment removeKey: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ].
aTestEnvironment removeKey: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ].
finalWorkingCopyList := MCWorkingCopy allManagers
collect: [ :each | each packageName ].
diff := finalWorkingCopyList difference: initialWorkingCopyList.
Expand Down
6 changes: 3 additions & 3 deletions src/Metacello-TestsMC/MetacelloScriptingTestCase.class.st
Expand Up @@ -93,9 +93,9 @@ MetacelloScriptingTestCase >> tearDownRepositories [
ifTrue: [ MetacelloPlatform current recursiveDelete: externalDirectory ].
sampleDirectory exists
ifTrue: [ MetacelloPlatform current recursiveDelete: sampleDirectory ].
Smalltalk globals removeKey: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ].
Smalltalk globals removeKey: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ].
Smalltalk globals
aTestEnvironment removeKey: #'Metacello_Configuration_Test_Repository' ifAbsent: [ ].
aTestEnvironment removeKey: #'Metacello_Gofer_Test_Repository' ifAbsent: [ ].
aTestEnvironment
removeKey: #'Metacello_MczConfiguration_Test_Repository'
ifAbsent: [ ].
MCRepositoryGroup default
Expand Down
Expand Up @@ -119,7 +119,7 @@ MetacelloRepositorySqueakCommonTestCase >> setUp [
{ #category : #running }
MetacelloRepositorySqueakCommonTestCase >> tearDown [

Smalltalk globals removeKey: #'Metacello_Platform_Test_GlobalDictionary' ifAbsent: [ ].
aTestEnvironment removeKey: #'Metacello_Platform_Test_GlobalDictionary' ifAbsent: [ ].
super tearDown
]

Expand Down

0 comments on commit 6e244d0

Please sign in to comment.