spec/examples.rb in cinnamon_serial-1.0.1 vs spec/examples.rb in cinnamon_serial-2.0.0

- old
+ new

@@ -91,19 +91,13 @@ # Test presenter 'transform' method serialize :renewal_date, for: :start_date, transform: true serialize :notify_date, for: :start_date, transform: :notification_date # Test 'true' alias - - # <b>DEPRECATED:</b> Please use <tt>true_alias</tt> instead. - serialize :true_value, true: 'I am true.' serialize :true_alias_value, true_alias: 'I am true alias.' # Test 'false' alias - - # <b>DEPRECATED:</b> Please use <tt>false_alias</tt> instead. - serialize :false_value, false: 'I am false.' serialize :false_alias_value, false_alias: 'I am false alias.' # Test 'null' alias serialize :null, null: 'I am null.' @@ -158,13 +152,13 @@ # ############################# # Subclass to test inheritance. # ############################# class EmployeeSerializer < EmployeeListSerializer - present :start_date, :job + serialize :start_date, :job - present :founder, - :owner, manual: true + serialize :founder, + :owner, manual: true hydrate do set_founder(obj.id < 10) end