1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec/v8/object_spec.rb
2012-07-05 23:54:47 -05:00

15 lines
321 B
Ruby

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