mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
13 lines
No EOL
299 B
Ruby
13 lines
No EOL
299 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()', '<eval>');
|
|
o.context.should == cxt
|
|
o.context.should be_eql(cxt)
|
|
end
|
|
end
|
|
end |