mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
654b808ac5
This fixes segmentation fault in the tests as extending the examples in a before block with override of `#instance_eval` seems to not work. Also, the context wrap is now opt-in with a helper method, instead of opt-out and relying on `#described_class` (which has slightly different behavior in RSpec 3). Tested on Ruby 2.1.5 and RSpec 2.99.2.
11 lines
217 B
Ruby
11 lines
217 B
Ruby
require 'spec_helper'
|
|
|
|
describe V8::C::External do
|
|
requires_v8_context
|
|
|
|
it "can store and retrieve a value" do
|
|
o = Object.new
|
|
external = V8::C::External::New(o)
|
|
external.Value().should be(o)
|
|
end
|
|
end
|