test/model_representing_test.rb in roar-0.8.2 vs test/model_representing_test.rb in roar-0.8.3
- old
+ new
@@ -4,25 +4,25 @@
class ModelRepresentingTest < MiniTest::Spec
describe "ModelRepresenting" do
class ItemRepresenter
include Roar::Representer::XML
include Roar::Representer::Feature::ModelRepresenting
- self.representation_name= :item
+ self.representation_wrap= :item
property :value
end
class PositionRepresenter
include Roar::Representer::XML
include Roar::Representer::Feature::ModelRepresenting
- self.representation_name= :position
+ self.representation_wrap= :position
property :id
property :item, :as => ItemRepresenter
end
class OrderRepresenter
include Roar::Representer::XML
include Roar::Representer::Feature::ModelRepresenting
- self.representation_name= :order
+ self.representation_wrap= :order
property :id
collection :items, :as => ItemRepresenter
end
describe "#definition_class" do