Skip to content

Commit

Permalink
[#322] Add spec for contribution guide on github wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
mosharaf13 committed Jul 13, 2023
1 parent 5089ea6 commit c98430a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .template/spec/addons/base/github/template_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

# TODO: Can't test this as it is now ignored by `.dockerignore`
xit 'modifies the README.md' do
expect(file('README.md')).not_to contain('## Get Started')
expect(file('README.md')).to contain('## Documentation')

expect(file('README.md')).not_to contain('## Getting Started')
expect(file('README.md')).not_to contain('## Testing')
expect(file('README.md')).not_to contain('## CI/CD')
end
Expand Down Expand Up @@ -65,11 +67,24 @@
it 'exists' do
expect(file('.github/wiki/Testing.md')).to exist
end

it 'contains the correct content extracted from README.md' do
expect(file('.github/wiki/Testing.md')).to contain('### Docker-based tests on the CI server')
expect(file('.github/wiki/Testing.md')).to contain('### Test')
expect(file('.github/wiki/Testing.md')).to contain('### Automated Code Review Setup')
end
end

describe '.github/wiki/Contribution-Guide.md' do
describe './github/wiki/Contribution-Guide.md' do
it 'exists' do
expect(file('.github/wiki/Contribution-Guide.md')).to exist
end

it 'contains the correct content extracted from README.md' do
expect(file('.github/wiki/Contribution-Guide.md')).to contain('## How to contribute')
expect(file('.github/wiki/Contribution-Guide.md')).to contain('### Template structure')
expect(file('.github/wiki/Contribution-Guide.md')).to contain('### Template specs')
expect(file('.github/wiki/Contribution-Guide.md')).to contain('### Template Strings')
end
end
end

0 comments on commit c98430a

Please sign in to comment.