Sha256: 6ef93395f44092739d521c4885335266060eab61157b23c4265ed19b680b5bb9

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 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
    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

1 entries across 1 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/nested_test.rb