Sha256: 78674960946387b30c4d23709d67cdc08715bfcab29ac46bd568aec348896e59
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 Bytes
Contents
require File.dirname(__FILE__) + "/spec_helper" describe('An AR serialize implementation') do it 'should instatiate, save, (clear and load) the original objects' do test_data = { :first => 1, :second => "dos", :third => 3.0 } srlzr1 = Serializer.new(:content => test_data) srlzr1.content.should == test_data srlzr1.save srlzr1.content.should == test_data srlzr1 = nil srlzr2 = Serializer.first srlzr2.content.should == test_data end end
Version data entries
5 entries across 5 versions & 1 rubygems