mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
13 lines
289 B
Ruby
13 lines
289 B
Ruby
|
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
|