Sha256: 0a7c4fc907f453de5b4822ab6799fb7765ff0b3e04c017a44e3a58e5cfe1df58
Contents?: true
Size: 411 Bytes
Versions: 6
Compression:
Stored size: 411 Bytes
Contents
# backtick_javascript: true require 'native' describe Hash do describe '#initialize' do it "returns a hash with a nil value" do h = Hash.new(`{a: null}`) h[:a].should == nil end end describe '#to_n' do it "should return a js object representing hash" do Hash.new({:a => 100, :b => 200}.to_n).should == {:a => 100, :b => 200} end end end describe "Hash#to_n" do end
Version data entries
6 entries across 6 versions & 1 rubygems