require File.dirname(__FILE__) + '/test_helper' context "Properly build known required to_ruby and from_ruby methods" do specify "should build for const & types as needed" do Extension.new "to_from_ruby" do |e| e.sources full_dir("headers/to_from_ruby.h"), :include_paths => full_dir("headers"), :include_source_files => full_dir("headers/to_from_ruby_source.cpp") e.namespace "to_from_ruby" end require 'to_from_ruby' needs_to_ruby(4).value.should == 4 some_other_method(7).value.should == 7 c = WrappedClass.new c.get_my_type(17).value.should == 17 c.overload_0.class.should == c.overload_1(0).class end end