Fix for copying built Github pages to the submodule properly

This commit is contained in:
Davis W. Frank
2012-04-02 18:33:38 -07:00
parent 06f1edc197
commit d63836afb4
2 changed files with 27 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ describe "Build Github Pages task" do
@output.should match(/Congratulations, project dumped to/)
end
it "should copy the pages output to the requested diretory" do
it "should build the pages output to the requested diretory" do
Dir.chdir File.join(pages_dir, 'pages_output') do
pages = Dir.glob(File.join('**', '*'))
@@ -52,5 +52,18 @@ describe "Build Github Pages task" do
pages.should include(File.join('css', 'screen.css'))
end
end
it "should copy the generated page files to the destination directory" do
Dir.chdir pages_dir do
pages = Dir.glob(File.join('**', '*'))
pages.should include('download.html')
pages.should include('index.html')
pages.should include(File.join('images', 'jasmine_logo.png'))
pages.should include(File.join('images', 'pivotal_logo.gif'))
pages.should include(File.join('css', 'pygments.css'))
pages.should include(File.join('css', 'screen.css'))
end
end
end
end