1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Vendor coffeescript source for tests

This commit is contained in:
Joshua Peek 2014-10-14 13:31:25 -07:00
parent a6f70bff9a
commit 1cf03a7afe
2 changed files with 13 additions and 2 deletions

12
test/fixtures/coffee-script.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -165,8 +165,7 @@ class TestExecJS < Test
end
def test_coffeescript
require "open-uri"
assert source = open("http://coffeescript.org/extras/coffee-script.js").read
assert source = File.read(File.expand_path("../fixtures/coffee-script.js", __FILE__))
context = ExecJS.compile(source)
assert_equal 64, context.call("CoffeeScript.eval", "((x) -> x * x)(8)")
end