1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/c/constants_spec.rb
ignisf 3990af52d0 v8 version spec fails after upstream update
Just bump the version to 3.15
2013-01-09 13:15:28 +02:00

20 lines
528 B
Ruby

require 'spec_helper'
describe V8::C do
it "has constant methods for Undefined, Null, True and False" do
[:Undefined, :Null, :True, :False].each do |name|
constant = V8::C.send(name)
constant.should_not be_nil
V8::C.send(name).should be constant
end
end
it "has a value for the Empty handle" do
V8::C::Value::Empty.should_not be_nil
V8::C::Value::Empty.should be V8::C::Value::Empty
end
it "can access the V8 version" do
V8::C::V8::GetVersion().should match /^3\.15/
end
end