Sha256: 1a134c552166322cef969b8a26ced6808ca9bb837a7e3516c199cc3031635919

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 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
      expect(OM.destringify( [{":person"=>"0"}, ":last_name"] )).to eq([{:person=>0}, :last_name])
      expect(OM.destringify( [{"person"=>"3"}, "last_name"] )).to eq([{:person=>3}, :last_name])
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
om-1.8.1 spec/unit/om_spec.rb