Sha256: 09e0bc8fced7aa5b081b5925f50ca9934b14982d1ac78fd8e549047790fdb8bb
Contents?: true
Size: 400 Bytes
Versions: 37
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe V8::Context do it "can be disposed of" do cxt = V8::Context.new cxt.enter do cxt['object'] = V8::Object.new end cxt.dispose() lambda {cxt.eval('1 + 1')}.should raise_error lambda {cxt['object']}.should raise_error end it "can be disposed of any number of times" do cxt = V8::Context.new 10.times {cxt.dispose()} end end
Version data entries
37 entries across 37 versions & 8 rubygems