Sha256: c58d80fbe5087d68b14eada460f9ca7844f7182879749a32036f39175087bf9a
Contents?: true
Size: 652 Bytes
Versions: 6
Compression:
Stored size: 652 Bytes
Contents
require 'test_helper' describe "Wrapping Classes within classes" do before(:all) do Extension.new "nested" do |e| e.sources full_dir("headers/nested_classes.h") node = e.namespace "classes" end require 'nested' end specify "should properly make nested classes available" do lambda do Kernel.const_get(TestClass) Kernel.const_get(TestClass::InnerClass) Kernel.const_get(TestClass::InnerClass::Inner2) end.should_not raise_error(NameError) TestClass.new.should_not be_nil TestClass::InnerClass.new.should_not be_nil TestClass::InnerClass::Inner2.new.should_not be_nil end end
Version data entries
6 entries across 6 versions & 1 rubygems