Sha256: f1f5f21d5196da43032d7062b93e8dbc920bbcaa76fcebba431cd6987b6a4845

Contents?: true

Size: 528 Bytes

Versions: 7

Compression:

Stored size: 528 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\.16/
  end
end

Version data entries

7 entries across 7 versions & 5 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/spec/c/constants_spec.rb
therubyracer-tmpfork-0.12.2 spec/c/constants_spec.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/spec/c/constants_spec.rb
therubyracer-0.12.2 spec/c/constants_spec.rb
therubyracer-0.12.1 spec/c/constants_spec.rb
therubyracer-discourse-0.12.0 spec/c/constants_spec.rb
therubyracer-0.12.0 spec/c/constants_spec.rb