Sha256: bde0fa5ffd3add9d50c2bb4a6cba69516b0476fb6b242dcbefc7a132c5e369ea

Contents?: true

Size: 180 Bytes

Versions: 21

Compression:

Stored size: 180 Bytes

Contents

describe "Hash#to_native" do
  it "should return a js object representing hash" do
    Hash.from_native({:a => 100, :b => 200}.to_native).should == {:a => 100, :b => 200}
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
opal-0.3.44 spec/rubyspec/core/hash/to_native_spec.rb
opal-0.3.43 spec/rubyspec/core/hash/to_native_spec.rb
opal-0.3.42 spec/core/hash/to_native_spec.rb
opal-0.3.41 spec/core/hash/to_native_spec.rb
opal-0.3.40 spec/core/hash/to_native_spec.rb
opal-0.3.39 spec/core/hash/to_native_spec.rb
opal-0.3.38 spec/core/hash/to_native_spec.rb
opal-0.3.37 spec/core/hash/to_native_spec.rb
opal-0.3.36 spec/core/hash/to_native_spec.rb
opal-0.3.35 spec/core/hash/to_native_spec.rb
opal-0.3.34 spec/core/hash/to_native_spec.rb
opal-0.3.33 spec/core/hash/to_native_spec.rb
opal-0.3.32 spec/core/hash/to_native_spec.rb
opal-0.3.31 spec/core/hash/to_native_spec.rb
opal-0.3.30 spec/core/hash/to_native_spec.rb
opal-0.3.29 spec/core/hash/to_native_spec.rb
opal-0.3.28 spec/core/hash/to_native_spec.rb
opal-0.3.27 spec/opal/hash/to_native_spec.rb
opal-0.3.26 spec/opal/hash/to_native_spec.rb
opal-0.3.25 spec/opal/hash/to_native_spec.rb