test/parse_pipeline_test.rb in representable-3.0.3 vs test/parse_pipeline_test.rb in representable-3.0.4

- old
+ new

@@ -43,11 +43,10 @@ collection :songs, parse_pipeline: ->(*) { [Collect[Instance, Prepare, Deserialize], Setter] }, instance: :instance!, exec_context: :decorator, pass_options: true do property :title end def instance!(*options) - puts "@@@@@ #{options.inspect}" Song.new end def songs=(array) represented.songs=array @@ -57,8 +56,7 @@ it do skip "TODO: implement :parse_pipeline and :render_pipeline, and before/after/replace semantics" album = Album.new Representer.new(album).from_hash({"artist"=>{"email"=>"yo"}, "songs"=>[{"title"=>"Affliction"}, {"title"=>"Dream Beater"}]}) album.songs.must_equal([Song.new("Affliction"), Song.new("Dream Beater")]) - puts album.inspect end end \ No newline at end of file