Sha256: a34fa1858111fe5d82a6e712d3c58f64987c09f8a077ba217367b61791c5320d

Contents?: true

Size: 472 Bytes

Versions: 29

Compression:

Stored size: 472 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require "nokogiri"
require "om"

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

29 entries across 29 versions & 1 rubygems

Version Path
om-1.6.0 spec/unit/om_spec.rb
om-1.6.0.rc3 spec/unit/om_spec.rb
om-1.6.0.rc2 spec/unit/om_spec.rb
om-1.6.0.rc1 spec/unit/om_spec.rb
om-1.5.3 spec/unit/om_spec.rb
om-1.5.2 spec/unit/om_spec.rb
om-1.5.1 spec/unit/om_spec.rb
om-1.5.0 spec/unit/om_spec.rb
om-1.4.4 spec/unit/om_spec.rb
om-1.4.3 spec/unit/om_spec.rb
om-1.4.2 spec/unit/om_spec.rb
om-1.4.0 spec/unit/om_spec.rb
om-1.3.0 spec/unit/om_spec.rb
om-1.2.5 spec/unit/om_spec.rb
om-1.2.4 spec/unit/om_spec.rb
om-1.2.3 spec/unit/om_spec.rb
om-1.2.2 spec/unit/om_spec.rb
om-1.2.1 spec/unit/om_spec.rb
om-1.2.0 spec/unit/om_spec.rb
om-1.1.1 spec/unit/om_spec.rb