Skip to content
This repository
Browse code

Make the readme example work

  • Loading branch information...
commit 6a1bf0c9c8e1f50190fe110b3514b5f092b20d24 1 parent 1fc0670
Sam Stephenson authored

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. +12 0 test/test_execjs.rb
12 test/test_execjs.rb
... ... @@ -0,0 +1,12 @@
  1 +require "execjs"
  2 +require "test/unit"
  3 +
  4 +class TestExecJS < Test::Unit::TestCase
  5 + def test_exec
  6 + assert_equal true, ExecJS.exec("return true")
  7 + end
  8 +
  9 + def test_eval
  10 + assert_equal ["red", "yellow", "blue"], ExecJS.eval("'red yellow blue'.split(' ')")
  11 + end
  12 +end

0 comments on commit 6a1bf0c

Please sign in to comment.
Something went wrong with that request. Please try again.