From: bwv549 Date: 2009-02-03T05:04:46+09:00 Subject: Re: MiniTest: a curious case of include (1.8 vs 1.9) Here's a workaround that combines the include call with a const_get call. Can still use 'describe'. Doesn't pollute namespace. Works on 1.8 and 1.9. Not too ugly: require 'minitest/spec' MiniTest::Unit.autorun # put this little method in some kind of spec_helper.rb file module Kernel def use(const, subconst) self.instance_eval( "include #{const}" ) const.const_get(subconst) end end module A module B end end describe 'Includes' do B = use A, 'B' it 'shows inclusion working' do B.must_equal A::B end end