Sha256: 3f1ac963b8bc83be06ee7ba748f4eecf23d0288b54356a0516f05e0d9696bfb1
Contents?: true
Size: 621 Bytes
Versions: 20
Compression:
Stored size: 621 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) describe "Nurego::Util" do it "symbolize_names should convert names to symbols" do start = { 'foo' => 'bar', 'array' => [{ 'foo' => 'bar' }], 'nested' => { 1 => 2, :symbol => 9, 'string' => nil } } finish = { :foo => 'bar', :array => [{ :foo => 'bar' }], :nested => { 1 => 2, :symbol => 9, :string => nil } } symbolized = Nurego::Util.symbolize_names(start) symbolized.should eq(finish) end end
Version data entries
20 entries across 20 versions & 1 rubygems