1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/ext/obj_spec.rb
2010-02-11 16:42:40 -06:00

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