Sha256: bb9c1cddcfc8eae86a83aff186da8840759220b28516917ed568ca2583b66671

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

require "#{File.dirname(__FILE__)}/../spec_helper.rb"

include V8

describe C::Object do
  it "has a reference to its calling context" do
    C::Context.new.open do |cxt|
      o = cxt.eval('new Object()');
      o.context.should == cxt
      o.context.should be_eql(cxt)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
therubyracer-0.4.8-x86-darwin-9 spec/ext/obj_spec.rb
therubyracer-0.4.8-x86-darwin-10 spec/ext/obj_spec.rb
therubyracer-0.4.8 spec/ext/obj_spec.rb
therubyracer-0.4.7-x86-darwin-9 spec/ext/obj_spec.rb
therubyracer-0.4.7-x86-darwin-10 spec/ext/obj_spec.rb
therubyracer-0.4.7 spec/ext/obj_spec.rb
therubyracer-0.4.6 spec/ext/obj_spec.rb
therubyracer-0.4.5 spec/ext/obj_spec.rb
therubyracer-0.4.4 spec/ext/obj_spec.rb