test/test_Exception.cpp in rice-2.2.0 vs test/test_Exception.cpp in rice-3.0.0
- old
+ new
@@ -1,15 +1,16 @@
#include "unittest.hpp"
+#include "embed_ruby.hpp"
#include "rice/Exception.hpp"
#include "rice/String.hpp"
using namespace Rice;
TESTSUITE(Exception);
SETUP(Exception)
{
- ruby_init();
+ embed_ruby();
}
TESTCASE(construct_from_exception_object)
{
VALUE v = protect(rb_exc_new2, rb_eRuntimeError, "foo");