enable test
This commit is contained in:
parent
cbde11d17b
commit
19bb6514ed
1 changed files with 7 additions and 7 deletions
|
|
@ -493,13 +493,13 @@ mod ruby_tests {
|
|||
type ScriptData = RubyScriptData;
|
||||
|
||||
fn assert_state_key_value_i64(world: &World, _entity_id: Entity, key: &str, value: i64) {
|
||||
// let runtime = world.get_resource::<RubyRuntime>().unwrap();
|
||||
// let key = key.to_string();
|
||||
// runtime.with_engine(move |engine| {
|
||||
// let state: magnus::value::Value = engine.class_object().const_get("STATE").unwrap();
|
||||
// let res: i64 = state.funcall_public("[]", (key,)).unwrap();
|
||||
// assert_eq!(res, value)
|
||||
// })
|
||||
let runtime = world.get_resource::<RubyRuntime>().unwrap();
|
||||
let key = key.to_string();
|
||||
runtime.with_engine(move |engine| {
|
||||
let state: magnus::value::Value = engine.class_object().const_get("STATE").unwrap();
|
||||
let res: i64 = state.funcall_public("[]", (key,)).unwrap();
|
||||
assert_eq!(res, value)
|
||||
})
|
||||
}
|
||||
|
||||
fn assert_state_key_value_i32(world: &World, _entity_id: Entity, key: &str, value: i32) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue