Sha256: f4c49eac806bc3315770f85c210cb18144d7b619c4c77569ace7833072776cb6

Contents?: true

Size: 488 Bytes

Versions: 26

Compression:

Stored size: 488 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.included_modules.include?( ToplevelTestModule1 )
  assert_true self.class.included_modules.include?( ToplevelTestModule2 )
  assert_equal :foo, method_foo
  assert_equal :bar2, CONST_BAR
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
script_core-0.0.6 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.0.5 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.2.0 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.5 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.4 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.3 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.2 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.1 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.1.0 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.11 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.10 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.9 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.8 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.7 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.6 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.5 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.3 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.2 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
esruby-0.0.0 resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.0.4 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb