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-3.1.0 spec/unit/om_spec.rb
om-3.0.7 spec/unit/om_spec.rb
om-3.0.6 spec/unit/om_spec.rb
om-3.0.5 spec/unit/om_spec.rb
om-3.0.4 spec/unit/om_spec.rb
om-3.0.3 spec/unit/om_spec.rb
om-3.0.2 spec/unit/om_spec.rb
om-3.0.1 spec/unit/om_spec.rb
om-3.0.0 spec/unit/om_spec.rb
om-2.2.1 spec/unit/om_spec.rb
om-3.0.0.beta2 spec/unit/om_spec.rb
om-3.0.0.beta1 spec/unit/om_spec.rb
om-2.1.2 spec/unit/om_spec.rb
om-2.1.1 spec/unit/om_spec.rb
om-2.1.0 spec/unit/om_spec.rb
om-2.0.0 spec/unit/om_spec.rb
om-1.9.0.rc1 spec/unit/om_spec.rb
om-1.9.0.pre1 spec/unit/om_spec.rb
om-1.8.0 spec/unit/om_spec.rb
om-1.8.0.rc1 spec/unit/om_spec.rb