test/unit/serializer/serializer_test.rb in jsonapi-resources-0.6.2 vs test/unit/serializer/serializer_test.rb in jsonapi-resources-0.7.0
- old
+ new
@@ -1740,10 +1740,10 @@
def test_serializer_resource_meta_fixed_value
Api::V5::AuthorResource.class_eval do
def meta(options)
{
fixed: 'Hardcoded value',
- computed: "#{self.class._type.to_s}: #{options[:serializer].url_generator.self_link(self)}"
+ computed: "#{self.class._type.to_s}: #{options[:serializer].link_builder.self_link(self)}"
}
end
end
serialized = JSONAPI::ResourceSerializer.new(