active_model_serializers/test
Benjamin Fleischer 17d560eae4 Account for different handling of symbol keys in Rails 4.0
Comparing as a JSON string vs. as the Hash that is convert to JSON
works around the different Hash representations.

This likely has to do with the introduction of
config.action_dispatch.perform_deep_munge in Rails 4.1
See Rails issue 13420

  1) Failure:
  ActiveModel::Serializer::Adapter::Json::HasManyTestTest#test_has_many_with_no_serializer
  [active_model_serializers/test/adapter/json/has_many_test.rb:36]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -{:id=>42, :tags=>[{"attributes"=>{"id"=>1, "name"=>"#hash_tag"}}]}
  +{:id=>42, :tags=>[{"attributes"=>{:id=>1, :name=>"#hash_tag"}}]}

  2) Failure:
  ActiveModel::Serializer::AssociationsTest#test_has_many_with_no_serializer
  [active_model_serializers/test/serializers/associations_test.rb:74]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -[{"attributes"=>{"name"=>"#hashtagged"}}]
  +[{"attributes"=>{:name=>"#hashtagged"}}]
2015-06-26 02:16:35 -03:00
..
action_controller adding new tests to cover array and object rendering 2015-06-26 02:15:42 -03:00
adapter Account for different handling of symbol keys in Rails 4.0 2015-06-26 02:16:35 -03:00
fixtures Add some failing tests around has_many assocs... 2015-06-26 02:16:34 -03:00
generators Restore has_one to generator 2015-06-25 14:00:27 -05:00
serializers Account for different handling of symbol keys in Rails 4.0 2015-06-26 02:16:35 -03:00
adapter_test.rb updating tests to match new adapters structure 2015-06-15 13:39:36 -03:00
array_serializer_test.rb Fixed #911 2015-05-17 22:47:44 +02:00
test_helper.rb enabling flatten json as default adapter 2015-06-15 13:49:24 -03:00