test/unit/generator/test_pdf.rb in thinreports-0.8.1 vs test/unit/generator/test_pdf.rb in thinreports-0.8.2
- old
+ new
@@ -9,10 +9,10 @@
def test_new_should_set_title_as_metadata
report = new_report('layout_text1.tlf') {|r| r.start_new_page }
actual_pdf_title = nil
- PDF::Document.define_singleton_method(:new) {|options, meta|
+ PDF::Document.define_singleton_method(:new) {|_options, meta|
actual_pdf_title = meta[:Title]
}
PDF.new report, {}
assert_equal 'Basic Layout', actual_pdf_title