Sha256: 2f0d3a1310428e2d84ca64c9903ddce3c85f820a71f570ba6cbdb39deb9fe98a
Contents?: true
Size: 401 Bytes
Versions: 74
Compression:
Stored size: 401 Bytes
Contents
require 'native' describe "Native::Object#[]" do it "should return the same value for bridged classes" do Native(`2`).should === 2 Native(`"lol"`).should === "lol" end it "should return functions as is" do Native(`{ a: function(){} }`)[:a].should be_kind_of Proc end it "should wrap natives into a Native object" do Native(`{ a: { b: 2 } }`)[:a][:b].should == 2 end end
Version data entries
74 entries across 74 versions & 3 rubygems