Sha256: 882f12d4d58d60aad3ba50f5be32298eea278eb62b181bba4833cf9f82c41654
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
# encoding: utf-8 require 'test_helper' require 'book_test_helper' require 'review/compiler' require 'review/htmlbuilder' class ReviewExtTest < Test::Unit::TestCase include BookTestHelper def test_builder_init_on_review_ext review_ext = <<-EOB module ReVIEW class HTMLBuilder attr_reader :builder_init_test def builder_init @builder_init_test = "test" end end end EOB ReVIEW::Book::Base.clear_rubyenv ## to load review-ext.rb mktmpbookdir('CHAPS' => "ch01.re\n", "ch01.re" => "= test\n\ntest.\n", "review-ext.rb" => review_ext) do |dir, book, files| builder = ReVIEW::HTMLBuilder.new(false) ReVIEW::Compiler.new(builder) assert_equal "test", builder.builder_init_test end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
review-2.3.0 | test/test_review_ext.rb |
review-2.2.0 | test/test_review_ext.rb |
review-2.1.0 | test/test_review_ext.rb |