Skip to content

Commit

Permalink
Issue GsDevKit#58: add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Oct 7, 2015
1 parent 8fcada4 commit 19fba3c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
tests
testDirectoryNamedWithAbsolutePath
self assert: (FileDirectory root directoryNamed: 'tmp') pathName = '/tmp'.
self assert: (FileDirectory default directoryNamed: '/tmp') pathName = '/tmp'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
tests
testIssue293
"http://code.google.com/p/glassdb/issues/detail?id=293"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
tests
testIssue58
"https://github.com/GsDevKit/GsDevKit/issues/58"

| main |
(main := ServerFileDirectory default directoryNamed: self mainSubdirectoryName)
exists
ifTrue: [ main recursiveDelete ].
ServerFileDirectory default createDirectory: self mainSubdirectoryName.
main := ServerFileDirectory default directoryNamed: self mainSubdirectoryName.
main newFileNamed: 'newFile' do: [ :file | file nextPutAll: 'Hello World' ].
main
readOnlyFileNamed: 'newFile'
do: [ :file | self assert: file contents = 'Hello World' ].
main
readOnlyFileNamed: 'newFile'
do: [ :file |
self deny: file atEnd.
file next: 11.
self assert: file atEnd ]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
"testBug39468" : "dkh 05/28/2012 13:16",
"testBug39767" : "dkh 05/28/2012 13:04",
"testDirectoryNamedWithAbsolutePath" : "NorbertHartl 11/30/2010 14:18",
"testIssue293" : "dkh 09/14/2011 14:37" } }
"testIssue293" : "dkh 09/14/2011 14:37",
"testIssue58" : "dkh 10/06/2015 19:24" } }
2 changes: 1 addition & 1 deletion repository/Bootstrap.v3.package/monticello.meta/version

Large diffs are not rendered by default.

0 comments on commit 19fba3c

Please sign in to comment.