From 44ee169aa6ed357414efc800138f12fdf6febef9 Mon Sep 17 00:00:00 2001 From: OffrayLuna Date: Tue, 28 Nov 2017 21:20:57 +0000 Subject: [PATCH] Migrating to a new development image. --- .../GrafoscopioDocumentation.class.st | 2 +- .../GrafoscopioDocumentationTest.class.st | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/Grafoscopio-Utils/GrafoscopioDocumentationTest.class.st diff --git a/src/Grafoscopio-Utils/GrafoscopioDocumentation.class.st b/src/Grafoscopio-Utils/GrafoscopioDocumentation.class.st index 68e3991..3a55990 100644 --- a/src/Grafoscopio-Utils/GrafoscopioDocumentation.class.st +++ b/src/Grafoscopio-Utils/GrafoscopioDocumentation.class.st @@ -170,7 +170,7 @@ GrafoscopioDocumentation >> update [ self inform: 'All documents in the ', self name,' collection are already updated'. ^ self ] ifNotEmpty: [:outdatedDocs | - outdatedDocs do: [ :eachDoc | self download: eachDoc]. + outdatedDocs do: [ :eachDoc | self download: eachDoc ]. self inform: 'Updating of ', self name,' documentation finished.' ] ] diff --git a/src/Grafoscopio-Utils/GrafoscopioDocumentationTest.class.st b/src/Grafoscopio-Utils/GrafoscopioDocumentationTest.class.st new file mode 100644 index 0000000..3f98a8d --- /dev/null +++ b/src/Grafoscopio-Utils/GrafoscopioDocumentationTest.class.st @@ -0,0 +1,24 @@ +" +A GrafoscopioDocumentationTest is a test class for testing the behavior of GrafoscopioDocumentation +" +Class { + #name : #GrafoscopioDocumentationTest, + #superclass : #TestCase, + #category : #'Grafoscopio-Utils-Tests' +} + +{ #category : #'tests-utility' } +GrafoscopioDocumentationTest >> defaultTestRepo [ + "I create a default documentation repository, that is used for several test." + + | testRepo | + testRepo := GrafoscopioDocumentation new. + testRepo repository: (FossilRepo new remote: 'http://mutabit.com/repos.fossil/grafoscopio'); + localPlace: FileLocator temp asFileReference /'Grafoscopio'; + name: 'test Repo'. + testRepo + addDocument: 'Docs/Es/Tutoriales/tutorial.ston'; + addDocument: 'Docs/En/Books/Manual/manual.ston'; + addDocument: 'Docs/En/Books/DataActivism/techniques-for-datactivism.ston'. + ^ testRepo +]