# File ../../../../../test/test_configure.rb, line 8 def setup @maker = ReVIEW::EPUBMaker.new @config = ReVIEW::Configure.values @config.merge!({ "bookname" => "sample", "title" => "Sample Book", "version" => 2, "urnid" => "http://example.jp/", "date" => "2011-01-01", "language" => "ja", "epubmaker" => {"flattocindent" => true}, }) @output = StringIO.new I18n.setup(@config["language"]) end
# File ../../../../../test/test_configure.rb, line 24 def test_configure_class assert_equal ReVIEW::Configure, @config.class end
# File ../../../../../test/test_configure.rb, line 28 def test_configure_get bookname = @config["bookname"] assert_equal "sample", bookname end
# File ../../../../../test/test_configure.rb, line 33 def test_configure_get2 assert_equal true, @config["epubmaker"]["flattocindent"] end
# File ../../../../../test/test_configure.rb, line 43 def test_configure_with_invalidmaker @config.maker = "pdfmaker" assert_equal nil, @config["flattocindent"] assert_equal true, @config["epubmaker"]["flattocindent"] end
# File ../../../../../test/test_configure.rb, line 37 def test_configure_with_maker @config.maker = "epubmaker" assert_equal true, @config["flattocindent"] assert_equal true, @config["epubmaker"]["flattocindent"] end