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

Version Path
arcabouco-0.2.13 vendor/bundle/gems/therubyracer-0.12.2/spec/v8/object_spec.rb
therubyracer-0.12.3 spec/v8/object_spec.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/therubyracer-0.11.4/spec/v8/object_spec.rb
therubyracer-xcode-0.12.3 spec/v8/object_spec.rb
therubyracer-xcode-0.12.2 spec/v8/object_spec.rb
therubyracer-tmpfork-0.12.2 spec/v8/object_spec.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/therubyracer-0.12.2/spec/v8/object_spec.rb
therubyracer-0.12.2 spec/v8/object_spec.rb
therubyracer-0.12.1 spec/v8/object_spec.rb
therubyracer-discourse-0.12.0 spec/v8/object_spec.rb
therubyracer-0.12.0 spec/v8/object_spec.rb
therubyracer-0.11.4 spec/v8/object_spec.rb
therubyracer-0.11.3 spec/v8/object_spec.rb
therubyracer-0.11.2 spec/v8/object_spec.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/therubyracer-0.11.0/spec/v8/object_spec.rb
therubyracer-0.11.1 spec/v8/object_spec.rb
therubyracer-0.11.1beta1 spec/v8/object_spec.rb
therubyracer-0.11.0 spec/v8/object_spec.rb
therubyracer-0.11.0beta8-x86-freebsd-9 spec/v8/object_spec.rb
therubyracer-0.11.0beta8-x86_64-linux spec/v8/object_spec.rb