active_model_serializers/test/serializers
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
..
adapter_for_test.rb updating tests to match new adapters structure 2015-06-15 13:39:36 -03:00
associations_test.rb Account for different handling of symbol keys in Rails 4.0 2015-06-26 02:16:35 -03:00
attribute_test.rb updating tests to match new adapters structure 2015-06-15 13:39:36 -03:00
attributes_test.rb Prevent possible duplicated attributes 2015-05-18 22:42:10 +02:00
cache_test.rb Default the generated cache key to use custom #strftime instead of raw #to_s to achieve more accurate precision 2015-06-25 23:40:18 -04:00
configuration_test.rb updating tests to match new adapters structure 2015-06-15 13:39:36 -03:00
fieldset_test.rb remove serializer dependency from fieldset 2014-10-27 15:24:19 -07:00
meta_test.rb Removing/Updating tests based on new FlattenJson adapter 2015-06-18 19:18:11 -03:00
options_test.rb Makes passed in options accessible inside serializers 2015-03-11 14:53:57 -03:00
serializer_for_test.rb Allow to define custom serializer for given class by defining #serializer_class method in serialized object's class. Resolves #515. 2015-05-03 17:47:52 +02:00
urls_test.rb Add DSL for urls 2014-09-01 13:44:22 -05:00