This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from kasperosterbye/GithubDocPresenter
GitHub doc presenter
- Loading branch information
Showing
14 changed files
with
758 additions
and
660 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/NewTools-DocumentationReader-Tests/StGithubDocSpecificationTest.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
" | ||
A StGithubDocSpecificationTest is a test class for testing the behavior of StGithubDocSpecification | ||
" | ||
Class { | ||
#name : #StGithubDocSpecificationTest, | ||
#superclass : #TestCase, | ||
#category : #'NewTools-DocumentationReader-Tests' | ||
} | ||
|
||
{ #category : #tests } | ||
StGithubDocSpecificationTest >> testUrlForDocFolder [ | ||
| spec | | ||
spec := StGithubDocSpecification new branch: 'Pharo10'. | ||
self | ||
assert: spec urlForDocFolder | ||
equals: 'https://api.github.com/repos/pharo-project/pharo/git/trees/Pharo10' | ||
] | ||
|
||
{ #category : #tests } | ||
StGithubDocSpecificationTest >> testUrlForFile [ | ||
| spec | | ||
spec := StGithubDocSpecification new branch: 'Pharo10'. | ||
self | ||
assert: (spec urlForFile: 'foo/bar.md') | ||
equals: 'https://raw.githubusercontent.com/pharo-project/pharo/Pharo10/doc/foo/bar.md' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.