test/model_representing_test.rb in roar-0.8.3 vs test/model_representing_test.rb in roar-0.9.0

- old
+ new

@@ -13,18 +13,18 @@ class PositionRepresenter include Roar::Representer::XML include Roar::Representer::Feature::ModelRepresenting self.representation_wrap= :position property :id - property :item, :as => ItemRepresenter + property :item, :class => ItemRepresenter end class OrderRepresenter include Roar::Representer::XML include Roar::Representer::Feature::ModelRepresenting self.representation_wrap= :order property :id - collection :items, :as => ItemRepresenter + collection :items, :class => ItemRepresenter end describe "#definition_class" do it "returns ModelDefinition" do assert_equal Roar::Representer::Feature::ModelRepresenting::ModelDefinition, OrderRepresenter.send(:definition_class)