updating tests to match new adapters structure

This commit is contained in:
João Moura
2015-06-15 13:39:36 -03:00
parent 2e46507971
commit 1ea5608e78
17 changed files with 49 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ module ActiveModel
end
def fields_for(serializer)
key = serializer.json_key || serializer.class.root_name
key = serializer.json_key
fields[key.to_sym]
end