Sha256: f043043610bc30f19bf1a4f447640bc2c0f1cd7b5b376494248ca6ebdaadf880
Contents?: true
Size: 321 Bytes
Versions: 36
Compression:
Stored size: 321 Bytes
Contents
require 'spec_helper' describe V8::Object do before do @object = V8::Context.new.eval('({foo: "bar", baz: "bang", qux: "qux1"})') end it "can list all keys" do @object.keys.sort.should eql %w(baz foo qux) end it "can list all values" do @object.values.sort.should eql %w(bang bar qux1) end end
Version data entries
36 entries across 36 versions & 8 rubygems