spec/spec_helper.rb in datamapper4rails-0.4.0 vs spec/spec_helper.rb in datamapper4rails-0.5.0

- old
+ new

@@ -19,17 +19,17 @@ property :session_id, String, :key => true property :updated_at, DateTime - property :data, Text, :nullable => false, :default => ::Base64.encode64(Marshal.dump({})) + property :raw_data, Text, :required => true, :default => ::Base64.encode64(Marshal.dump({})) def data=(data) - attribute_set(:data, ::Base64.encode64(Marshal.dump(data))) + attribute_set(:raw_data, ::Base64.encode64(Marshal.dump(data))) end def data - Marshal.load(::Base64.decode64(attribute_get(:data))) + Marshal.load(::Base64.decode64(attribute_get(:raw_data))) end end DataMapper.setup(:default, {:adapter => 'in_memory'})