Sha256: 77bacf300777c3d647c8ba456c81b26a30de07235c340974af1ea0d97d66f117

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

describe Hari::Entity::Serialization::String do

  describe '.serialize, .desserialize' do
    it 'converts value to string' do
      subject.serialize(:something).should == 'something'
      subject.serialize(1).should == '1'
      subject.serialize(nil).should == nil
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hari-0.0.5 spec/hari/entity/serialization/string_spec.rb
hari-0.0.4 spec/hari/entity/serialization/string_spec.rb
hari-0.0.3 spec/hari/entity/serialization/string_spec.rb
hari-0.0.1 spec/hari/entity/serialization/string_spec.rb