Skip to content
Browse files

test for github gen

  • Loading branch information...
1 parent 0660f3d commit 735a5d95b7f0b9add1c6f65248029a0811891e86 @schacon schacon committed Sep 12, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/utils_test.rb
View
9 test/utils_test.rb
@@ -53,6 +53,15 @@
# github - Puts your showoff presentation into a gh-pages branch
test "can create a github version" do
+ in_image_dir do
+ ShowOffUtils.github
+ files = `git ls-tree gh-pages`.chomp.split("\n")
+ assert_equal 4, files.size
+ content = `git cat-file -p gh-pages:index.html`
+ assert_match 'My Presentation', content
+ assert_equal 2, content.scan(/div class="slide"/).size
+ assert_match 'img src="./file/one/chacon.jpg" width="300" height="300" alt="chacon"', content
+ end
end
end

0 comments on commit 735a5d9

Please sign in to comment.
Something went wrong with that request. Please try again.