Skip to content

Commit

Permalink
Update Ceedling to concentrate on the markdown documentation of the s…
Browse files Browse the repository at this point in the history
…ubprojects.
  • Loading branch information
mvandervoord committed Apr 25, 2017
1 parent dc040fe commit 9a656d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
15 changes: 8 additions & 7 deletions bin/ceedling
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@ unless (project_found && rakefile_found)
in_doc_path = lambda {|f| File.join(doc_path, f)}

doc_files = [
'docs/CeedlingPacket.pdf',
'vendor/c_exception/docs/CExceptionSummary.pdf',
'vendor/cmock/docs/CMock Summary.pdf',
'docs/CeedlingPacket.md',
'vendor/c_exception/docs/CException.md',
'vendor/cmock/docs/CMock_Summary.md',
'vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf',
'vendor/unity/docs/UnityAssertionsReference.pdf',
'vendor/unity/docs/UnityConfigurationGuide.pdf',
'vendor/unity/docs/UnityGettingStartedGuide.pdf',
'vendor/unity/docs/UnityHelperScriptsGuide.pdf',
'vendor/unity/docs/UnityAssertionsReference.md',
'vendor/unity/docs/UnityConfigurationGuide.md',
'vendor/unity/docs/UnityGettingStartedGuide.md',
'vendor/unity/docs/UnityHelperScriptsGuide.md',
'vendor/unity/docs/ThrowTheSwitchCodingStandard.md',
]

doc_files.each do |f|
Expand Down
6 changes: 4 additions & 2 deletions spec/spec_system_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def can_upgrade_projects
expect(File.exists?("rakefile.rb")).to eq true
expect(File.exists?("src")).to eq true
expect(File.exists?("test")).to eq true
expect(Dir["vendor/ceedling/docs/*.pdf"].length).to be >= 4
all_docs = Dir["vendor/ceedling/docs/*.pdf"].length + Dir["vendor/ceedling/docs/*.md"].length
expect(all_docs).to be >= 4
end
end
end
Expand All @@ -166,7 +167,8 @@ def does_not_contain_a_vendor_directory
def contains_documentation
@c.with_context do
Dir.chdir @proj_name do
expect(Dir["vendor/ceedling/docs/*.pdf"].length).to be >= 4
all_docs = Dir["vendor/ceedling/docs/*.pdf"].length + Dir["vendor/ceedling/docs/*.md"].length
expect(all_docs).to be >= 4
end
end
end
Expand Down

0 comments on commit 9a656d3

Please sign in to comment.