1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/c/script_spec.rb
2012-06-05 08:00:04 -05:00

11 lines
No EOL
328 B
Ruby

require 'spec_helper'
describe V8::C::Script do
it "can run a script and return a polymorphic result" do
source = V8::C::String::New("(new Array())")
filename = V8::C::String::New("<eval>")
script = V8::C::Script::New(source, filename)
result = script.Run()
result.should be_kind_of V8::C::Array
end
end