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

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.3.0 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.7 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.6 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.5 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.4 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.3 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.2 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.1 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.2.0 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.1.1 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb
script_core-0.1.0 ext/enterprise_script_service/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb