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:
parent
a6f70bff9a
commit
1cf03a7afe
2 changed files with 13 additions and 2 deletions
12
test/fixtures/coffee-script.js
vendored
Normal file
12
test/fixtures/coffee-script.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue