Sha256: 0f061c7d3a28bf840230b9201f4a757a31de8663f9c5e1a92ea093d0ab61ae44
Contents?: true
Size: 433 Bytes
Versions: 4
Compression:
Stored size: 433 Bytes
Contents
require 'spec_helper' describe Hari::Entity::Serialization::Integer do describe '.serialize, .desserialize' do it 'converts to integer' do subject.serialize('1200').should == 1200 subject.serialize(1200).should == 1200 end context 'when an invalid value is serialized' do it 'raises an error' do expect { subject.desserialize('not an integer') }.to raise_error end end end end
Version data entries
4 entries across 4 versions & 1 rubygems