Sha256: 7d17007e5290f668c6dd86401141ed6b083d1393375f5c13097d36ec75439ac3
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
require 'spec_helper' describe ::ArJsonSerialize::ActiveRecordExt do it 'should extend ActiveRecord::Base' do ::ActiveRecord::Base.should respond_to(:json_serialize) end it 'should call ActiveRecord::Base.serialize' do ::ActiveRecord::Base.should_receive(:serialize).with('column', ::ArJsonSerialize::Serializer) ::ActiveRecord::Base.json_serialize('column') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar_json_serialize-0.0.2 | spec/activerecord_ext_spec.rb |
ar_json_serialize-0.0.1 | spec/activerecord_ext_spec.rb |