Sha256: 11198f61dcd9c39063bf33d39e8ac325064f52d9b6ea6b3529d1cff1f897da2f
Contents?: true
Size: 520 Bytes
Versions: 14
Compression:
Stored size: 520 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'test/unit' require 'glue/builder' class TC_Builder < Test::Unit::TestCase # :nodoc: all include Glue module TestMixin def hello 'hello' end def world 'world' end end class TestBuilder < Builder include_builder TestMixin end def test_all t = TestBuilder.new(doc = '') t.hello t.world assert_equal 'helloworld', doc t.hello assert_equal 'helloworldhello', doc end end
Version data entries
14 entries across 14 versions & 1 rubygems