Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Oct 16, 2023
1 parent 87a1460 commit c15bd7d
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Class {
#superclass : #TestCase,
#instVars : [
'root',
'errorStream'
'errorStream',
'outStream'
],
#category : #'PharoLauncher-CLI-Tests'
}
Expand All @@ -22,8 +23,11 @@ PharoLauncherCLIConfigurationTest >> createPreferencesFileWith: aConfiguration [
PharoLauncherCLIConfigurationTest >> setUp [
super setUp.
root := FileSystem memory root.
outStream := WriteStream on: (String new).
errorStream := WriteStream on: (String new).
PhLNotificationCenter default errorStream: errorStream
PhLNotificationCenter default
errorStream: errorStream;
outStream: outStream.

]

Expand Down Expand Up @@ -74,7 +78,7 @@ PharoLauncherCLIConfigurationTest >> testGetConfigurationWhenConfigurationFileAb
config := PharoLauncherCLIConfiguration configurationFromFile: (root / 'launcherSettings.ston') asFileReference .

self assert: (config isKindOf: PharoLauncherCLIConfiguration).
self assert: ( PhLNotificationCenter default errorStream contents includesSubstring: 'Config' )
self assert: (PhLNotificationCenter default outStream contents includesSubstring: 'Config')


]
Expand Down

0 comments on commit c15bd7d

Please sign in to comment.