]> granicus.if.org Git - docbook-dsssl/commitdiff
'Realbook' spec now passes
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Sun, 1 Jun 2008 20:20:09 +0000 (20:20 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Sun, 1 Jun 2008 20:20:09 +0000 (20:20 +0000)
xsl/epub/bin/spec/README
xsl/epub/bin/spec/epub_realbook_spec.rb

index d9670ed12a2fdf52363fe24b3bb99b3227ac6c89..bdc95f27b2a1a63b2d0b0726e0e932ed94f23dd8 100644 (file)
@@ -12,3 +12,6 @@ Or, prettier:
   $ spec --format specdoc --color spec/epub_spec.rb 
 
 3. Repeat for other files in spec/*spec.rb
+
+How to make them more verbose?
+1. Set $DEBUG to true (near the top of each spec)
index eb6cb6bc2a8e593c74ad3ad8decc1747f8f82799..7b5ce2626722d889484f927c2b1c5c5b2beceb73 100755 (executable)
@@ -14,7 +14,7 @@ require 'spec'
 
 require 'docbook'
 
-$DEBUG = true
+$DEBUG = false
 
 TESTDOCSDIR = File.expand_path(File.join(File.dirname(__FILE__), 'files'))
 
@@ -34,7 +34,7 @@ describe DocBook::Epub do
 
     it "should include cover images in each rendered epub of a 'Real Book' test document like #{xml_file}" do
       cvr_tmpdir = File.join(Dir::tmpdir(), "epubcovers"); Dir.mkdir(cvr_tmpdir) rescue Errno::EEXIST
-      system("unzip -o -d #{cvr_tmpdir} #{epub_file}")
+      system("unzip -q -o -d #{cvr_tmpdir} #{epub_file}")
       cover_grep_lines = `grep --no-filename -c cvr_ #{cvr_tmpdir}/OEBPS/*.html`
       num_covers = cover_grep_lines.split("\n").inject(0) {|sum,n| sum + n.to_i}
       num_covers.should > 0