Sha256: a8f243b6788d1dcdf796eb28c761f40cec01fe6951681be7b8aa9a1c0f4034e1
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
require 'spec_helper' describe ::ArJsonSerialize::ActiveRecordExt do it 'should extend ActiveRecord::Base' do expect(::ActiveRecord::Base).to respond_to(:json_serialize) end it 'should call ActiveRecord::Base.serialize' do expect(::ActiveRecord::Base).to receive(:serialize).with('column', ::ArJsonSerialize::Serializer) ::ActiveRecord::Base.json_serialize('column') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ar_json_serialize-0.0.3 | spec/ar_json_serialize/activerecord_ext_spec.rb |