test/serializers/json_serializer_test.rb in purzelrakete-restful-0.2.8 vs test/serializers/json_serializer_test.rb in purzelrakete-restful-0.2.9

- old
+ new

@@ -70,8 +70,13 @@ json_should_eql_fixture(pets.to_restful_json, "pets", :pets_array_with_total_entries) end specify "should be able to serialize a map" do Person.restful_publish(:name) - json_should_eql_fixture({ "total_hits" => 10, "a_person" => @person }.to_restful_json, "people", :hash_with_person) + json_should_eql_fixture({ "total_hits" => 1, "a_person" => @person }.to_restful_json, "people", :hash_with_person) + end + + specify "should be able to serialize a map with arrays as values" do + Person.restful_publish(:name) + json_should_eql_fixture({ "total_hits" => 2, "people" => [ @person, @person ] }.to_restful_json, "people", :hash_with_people) end end