Added checks for ruby rails integration test.
@@ -30,21 +30,21 @@ TEST_F(rb_rails_integration_test, DefaultConstructor)
"blog.rb"
};
- /*
+ const char func_run[] = "run_and_kill_server";
+
void * ret = NULL;
- */
EXPECT_EQ((int) 0, (int) metacall_load_from_file("rb", rb_scripts, sizeof(rb_scripts) / sizeof(rb_scripts[0])));
- /*
- ret = metacall("run_and_kill_server");
+ EXPECT_NE((void *) NULL, (void *) metacall_function(func_run));
+
+ ret = metacall(func_run);
EXPECT_NE((void *) NULL, (void *) ret);
EXPECT_EQ((int) 0, (int) metacall_value_to_int(ret));
metacall_value_destroy(ret);
- */
}
#endif /* OPTION_BUILD_PLUGINS_RB */
