Sha256: 76746b085ddfdbde0d1e42377724333aaa7cdfac6324c5c42d4356c28328bf86
Contents?: true
Size: 474 Bytes
Versions: 12
Compression:
Stored size: 474 Bytes
Contents
## # Toplevel Self(Ext) Test assert('Toplevel#include') do module ToplevelTestModule1 def method_foo :foo end CONST_BAR = :bar end module ToplevelTestModule2 CONST_BAR = :bar2 end self.include ToplevelTestModule2, ToplevelTestModule1 assert_true self.class.ancestors.include?( ToplevelTestModule1 ) assert_true self.class.ancestors.include?( ToplevelTestModule2 ) assert_equal :foo, method_foo assert_equal :bar2, CONST_BAR end
Version data entries
12 entries across 12 versions & 1 rubygems