Skip to content

Commit

Permalink
Merge pull request #4666 from Alisu/SmalltalkRemoval-BuilderManifestTest
Browse files Browse the repository at this point in the history
Smalltalk removal builder manifest test
  • Loading branch information
MarcusDenker committed Sep 20, 2019
2 parents 90ca5ed + 7341208 commit 18589ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Kernel/BlockClosure.class.st
Expand Up @@ -556,7 +556,7 @@ BlockClosure >> printOn: aStream [

aStream nextPutAll: ((self method hasSourceCode
or: [ "There is a decompiler"
Smalltalk globals includesKey: #FBDDecompiler ])
self class environment includesKey: #FBDDecompiler ])
ifTrue: [ self sourceNode formattedCode ]
ifFalse: [ 'aBlockClosure(no source code or decompiler available)' ])
]
Expand Down
12 changes: 8 additions & 4 deletions src/Manifest-Tests/BuilderManifestTest.class.st
Expand Up @@ -4,6 +4,9 @@ A ManifestBuilderTest is a class to test the behavior of ManifestBuilder
Class {
#name : #BuilderManifestTest,
#superclass : #TestCase,
#instVars : [
'environment'
],
#category : #'Manifest-Tests-Base'
}

Expand All @@ -12,7 +15,8 @@ BuilderManifestTest >> setUp [

| cl |
super setUp.
cl := Smalltalk globals at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
environment := self class environment.
cl := environment at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl
ifNotNil: [
cl
Expand All @@ -25,7 +29,7 @@ BuilderManifestTest >> setUp [
BuilderManifestTest >> tearDown [

| cl |
cl := Smalltalk globals at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl := environment at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl
ifNotNil: [
cl
Expand Down Expand Up @@ -252,7 +256,7 @@ BuilderManifestTest >> testContainsToDo [
BuilderManifestTest >> testCreationManifest [
| manifestBuilder cl |
manifestBuilder := TheManifestBuilder new.
cl := Smalltalk globals at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl := environment at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl
ifNotNil: [
cl
Expand All @@ -267,7 +271,7 @@ BuilderManifestTest >> testCreationManifest [
BuilderManifestTest >> testCreationManifestOn [
| manifestBuilder cl |
manifestBuilder := TheManifestBuilder new.
cl := Smalltalk globals at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl := environment at: #ManifestManifestResourcesTests ifAbsent: [ nil ].
cl
ifNotNil: [
cl
Expand Down

0 comments on commit 18589ea

Please sign in to comment.