Sha256: 0c83530f4bb1129674b8d16d1bc9e48d838af2aea2b3ac0c83b097584598a705

Contents?: true

Size: 527 Bytes

Versions: 27

Compression:

Stored size: 527 Bytes

Contents

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\.11/
  end
end

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/spec/c/constants_spec.rb
therubyracer-0.11.4 spec/c/constants_spec.rb
therubyracer-0.11.3 spec/c/constants_spec.rb
therubyracer-0.11.2 spec/c/constants_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/spec/c/constants_spec.rb
therubyracer-0.11.1 spec/c/constants_spec.rb
therubyracer-0.11.1beta1 spec/c/constants_spec.rb
therubyracer-0.11.0 spec/c/constants_spec.rb
therubyracer-0.11.0beta8-x86-freebsd-9 spec/c/constants_spec.rb
therubyracer-0.11.0beta8-x86_64-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta8-x86-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta8 spec/c/constants_spec.rb
therubyracer-0.11.0beta7-x86_64-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta7-x86-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta7-x86_64-darwin-10 spec/c/constants_spec.rb
therubyracer-0.11.0beta7 spec/c/constants_spec.rb
therubyracer-0.11.0beta6-x86-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta6-x86_64-linux spec/c/constants_spec.rb
therubyracer-0.11.0beta6 spec/c/constants_spec.rb
therubyracer-0.11.0beta5-x86-linux spec/c/constants_spec.rb