diff --git a/src/NewTools-DocumentationReader-Tests/StGithubDocSpecificationTest.class.st b/src/NewTools-DocumentationReader-Tests/StGithubDocSpecificationTest.class.st index 1358b92..0244c4f 100644 --- a/src/NewTools-DocumentationReader-Tests/StGithubDocSpecificationTest.class.st +++ b/src/NewTools-DocumentationReader-Tests/StGithubDocSpecificationTest.class.st @@ -9,6 +9,7 @@ Class { { #category : #tests } StGithubDocSpecificationTest >> testUrlForDocFolder [ + | spec | spec := StGithubDocSpecification new branch: 'Pharo10'. self @@ -18,6 +19,7 @@ StGithubDocSpecificationTest >> testUrlForDocFolder [ { #category : #tests } StGithubDocSpecificationTest >> testUrlForFile [ + | spec | spec := StGithubDocSpecification new branch: 'Pharo10'. self diff --git a/src/NewTools-DocumentationReader-Tests/StHelpBrowserPresenterTest.class.st b/src/NewTools-DocumentationReader-Tests/StHelpBrowserPresenterTest.class.st index 4b2f784..c0ca6b3 100644 --- a/src/NewTools-DocumentationReader-Tests/StHelpBrowserPresenterTest.class.st +++ b/src/NewTools-DocumentationReader-Tests/StHelpBrowserPresenterTest.class.st @@ -80,11 +80,12 @@ StHelpBrowserPresenterTest >> tearDown [ { #category : #'tests - interaction' } StHelpBrowserPresenterTest >> testOpenIsWorkingSmokeTest [ "When this fails we have found a default way to open the help browser, then this test should be changed" + | browser | self should: [ browser := self presenterClass new. - window := browser openWithSpec] + window := browser openWithSpec ] raise: Exception ] diff --git a/src/NewTools-DocumentationReader-Tests/StTopicBuilderVisitorTest.class.st b/src/NewTools-DocumentationReader-Tests/StTopicBuilderVisitorTest.class.st index 87cd334..65fe6d5 100644 --- a/src/NewTools-DocumentationReader-Tests/StTopicBuilderVisitorTest.class.st +++ b/src/NewTools-DocumentationReader-Tests/StTopicBuilderVisitorTest.class.st @@ -94,7 +94,6 @@ StTopicBuilderVisitorTest >> testTopicBuilderVisitorVisitHeaderAtLevel2 [ StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithLevelsSections [ | topic | - topic := self topicIn: self class spFileContentsLevelsSections. self assert: topic subtopics first title equals: 'Section 1'. self assert: topic subtopics first subtopics first title equals: 'Section 2'. @@ -102,6 +101,7 @@ StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithLevelsSections [ { #category : #tests } StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithMoreSections [ + | topic | topic := self topicIn: self class spFileContentsMoreSections. self assert: topic subtopics second title equals: 'Section 2'. @@ -110,8 +110,8 @@ StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithMoreSections [ { #category : #tests } StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithMoreSubSection [ - | topic | - + + | topic | topic := self topicIn: self class spFileContentsWithMoreSubSection. self assert: (topic subtopics first subtopics second) title @@ -143,6 +143,7 @@ StTopicBuilderVisitorTest >> testTopicBuilderVisitorWithOneSubSection [ { #category : #helper } StTopicBuilderVisitorTest >> topicIn: aString [ + | visitor | visitor := StTopicBuilderVisitor new. visitor visit: (MicroDownParser new parse: aString). diff --git a/src/NewTools-DocumentationReader-Tests/StTopicFromFileFolderBuilderTest.class.st b/src/NewTools-DocumentationReader-Tests/StTopicFromFileFolderBuilderTest.class.st index b23f00b..936e73a 100644 --- a/src/NewTools-DocumentationReader-Tests/StTopicFromFileFolderBuilderTest.class.st +++ b/src/NewTools-DocumentationReader-Tests/StTopicFromFileFolderBuilderTest.class.st @@ -11,7 +11,7 @@ Class { #category : #'NewTools-DocumentationReader-Tests' } -{ #category : #'as yet unclassified' } +{ #category : #'manual inspection' } StTopicFromFileFolderBuilderTest class >> eyeballTest [ "This should be able to open the HelpBrowser on the test data"