active_model_serializers/test/adapter/json_api
Benjamin Fleischer 1d4cd6f104 Fix intermittent test failures by not mutating global state
e.g.

https://ci.appveyor.com/project/bf4/active-model-serializers/build/415/job/qs8895cvla8fl0rf
 1) Failure:
 ActiveModel::Serializer::Adapter::JsonApi::RelationshipTest#test_relationship_including_data_explicit
 [C:/projects/active-model-serializers/test/adapter/json_api/relationships_test.rb:186]:
 --- expected
 +++ actual
 @@ -1 +1 @@
 -{:data=>{:id=>"1337", :type=>"authors"}, :meta=>{:name=>"Dan Brown"}}
 +{:data=>{:id=>"1337", :type=>"authors"

https://travis-ci.org/rails-api/active_model_serializers/jobs/156678147
  1) Failure:
  ActiveModel::Serializer::Adapter::JsonApi::RelationshipTest#test_relationship_with_everything
  [/home/travis/build/rails-api/active_model_serializers/test/adapter/json_api/relationships_test.rb:200]:
  --- expected
  +++ actual
  @@ -1 +1 @@
  -{:data=>[{:id=>"1337", :type=>"likes"}],
  :links=>{:related=>{:href=>"//example.com/likes/1337",
  :meta=>{:ids=>"1337"}}}, :meta=>{:liked=>true}}
  +{:data=>[{:id=>"1337", :type=>"likes"}],
  :links=>{:related=>{:href=>"//example.com/likes/1337",
  :meta=>{:ids=>"1337"}}}}
2016-08-31 19:24:21 -05:00
..
belongs_to_test.rb Rubocop autocorrect 2016-03-08 22:32:34 +01:00
collection_test.rb Fix RuboCop 0.40 linter errors (#1722) 2016-05-26 12:58:05 -04:00
errors_test.rb re: RuboCop - replace rocket style hashes 2016-06-20 22:14:12 +01:00
fields_test.rb remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
has_many_embed_ids_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
has_many_explicit_serializer_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
has_many_test.rb Add tests for fields option demonstrating usage on both attributes and relationships (#1839) 2016-08-17 16:12:12 -05:00
has_one_test.rb Fix tests to comply with the JSON API spec. 2016-04-20 03:08:54 +02:00
json_api_test.rb re: RuboCop - hash indention corrections 2016-06-20 22:13:21 +01:00
linked_test.rb Namespace separator setting for json-api and tests (#1874) 2016-08-12 12:54:42 -05:00
links_test.rb remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
pagination_links_test.rb re: RuboCop - get rid of redundant curly braces around a hash parameter 2016-06-20 22:14:39 +01:00
parse_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
relationship_test.rb Refactor Association into Field like everything else (#1897) 2016-08-31 09:35:41 -04:00
relationships_test.rb Fix intermittent test failures by not mutating global state 2016-08-31 19:24:21 -05:00
resource_identifier_test.rb Namespace separator setting for json-api and tests (#1874) 2016-08-12 12:54:42 -05:00
resource_meta_test.rb re: RuboCop - replace rocket style hashes 2016-06-21 22:08:27 +01:00
toplevel_jsonapi_test.rb Moved the adapter and adapter folder to active_model_serializers folder and changed the module namespace 2016-02-23 21:49:58 -06:00
transform_test.rb remove dynamic class creation where not needed (#1850) 2016-07-18 14:11:09 -05:00
type_test.rb re: RuboCop: Bulk minor style corrections 2016-06-20 22:12:16 +01:00