test/test_helper.rb in gir_ffi-0.0.1 vs test/test_helper.rb in gir_ffi-0.0.2
- old
+ new
@@ -34,6 +34,12 @@
def get_method_introspection_data namespace, klass, function
GirFFI::IRepository.default.require namespace, nil
GirFFI::Builder.send :method_introspection_data, namespace, klass, function
end
+
+ def cleanup_module name
+ if Object.const_defined? name
+ Object.send(:remove_const, name)
+ end
+ end
end