Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add coffeescript smoke test

  • Loading branch information...
commit bfe14c23b713b8c558218c316d9e666f06675912 1 parent 535313b
@josh josh authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/test_execjs.rb
View
7 test/test_execjs.rb
@@ -159,4 +159,11 @@ def test_thrown_exception
ExecJS.exec("throw 'hello'")
end
end
+
+ def test_coffeescript
+ require "open-uri"
+ assert source = open("http://jashkenas.github.com/coffee-script/extras/coffee-script.js").read
+ context = ExecJS.compile(source)
+ assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.