Browse files

Fixed PDF tests for Ruby < 1.9

  • Loading branch information...
1 parent 521d868 commit edec434b8e31aa0b1d218b124872ef878768315b @gettalong committed Feb 16, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/test_files.rb
View
1 test/test_files.rb
@@ -252,6 +252,7 @@ def tidy_output(out)
opts_file = text_file.sub(/\.text$/, '.options')
options = File.exist?(opts_file) ? YAML::load(File.read(opts_file)) : {:auto_ids => false, :footnote_nr => 1}
(Kramdown::Converter.constants.map {|c| c.to_sym} - [:Base, :RemoveHtmlTags]).each do |conv_class|
+ next if conv_class == :Pdf && RUBY_VERSION < '1.9'
define_method("test_whether_#{conv_class}_modifies_tree_with_file_#{text_file.tr('.', '_')}") do
doc = Kramdown::Document.new(File.read(text_file), options)
options_before = Marshal.load(Marshal.dump(doc.options))

0 comments on commit edec434

Please sign in to comment.