From 1bf999b0fd4d39bf1c46bc0707f14c4a72ceefc4 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 3 Feb 2015 13:43:41 -0800 Subject: [PATCH] More specific test name --- test/test_execjs.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_execjs.rb b/test/test_execjs.rb index 7144e18..f963c10 100644 --- a/test/test_execjs.rb +++ b/test/test_execjs.rb @@ -220,8 +220,11 @@ class TestExecJS < Test assert_equal true, ExecJS.exec("return this === (function() {return this})()") end - def test_commonjs_vars_are_undefined + def test_node_global_is_undefined assert ExecJS.eval("typeof global == 'undefined'") + end + + def test_commonjs_vars_are_undefined assert ExecJS.eval("typeof module == 'undefined'") assert ExecJS.eval("typeof exports == 'undefined'") assert ExecJS.eval("typeof require == 'undefined'")