$:.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