Sha256: a3ca3dd23ba9fbff572ce10d6c515963ecb34f0f60fd8d123c5d5e7db37b7cd1

Contents?: true

Size: 394 Bytes

Versions: 24

Compression:

Stored size: 394 Bytes

Contents

require 'spec_helper'

describe "OM" do
  
  describe "#{}destringify" do
    it "should recursively change any strings beginning with : to symbols and any number strings to integers" do
      OM.destringify( [{":person"=>"0"}, ":last_name"] ).should == [{:person=>0}, :last_name]
      OM.destringify( [{"person"=>"3"}, "last_name"] ).should == [{:person=>3}, :last_name]
    end
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
om-1.7.0 spec/unit/om_spec.rb
om-1.7.0.rc2 spec/unit/om_spec.rb
om-1.7.0.rc1 spec/unit/om_spec.rb
om-1.6.1 spec/unit/om_spec.rb