Improve Coverage

This commit is contained in:
Benjamin Fleischer
2016-06-07 01:50:03 -05:00
parent 35a7c81034
commit 253205bb49
8 changed files with 10 additions and 9 deletions

View File

@@ -7,9 +7,11 @@ module ActiveModel
deprecate :inherited, 'ActiveModelSerializers::Adapter::Base.'
end
# :nocov:
def initialize(serializer, options = {})
super(ActiveModelSerializers::Adapter::Base.new(serializer, options))
end
# :nocov:
end
end
end

View File

@@ -2,9 +2,6 @@ module ActiveModel
class Serializer
# @api private
class BelongsToReflection < SingularReflection
def macro
:belongs_to
end
end
end
end

View File

@@ -2,9 +2,6 @@ module ActiveModel
class Serializer
# @api private
class HasManyReflection < CollectionReflection
def macro
:has_many
end
end
end
end

View File

@@ -2,9 +2,6 @@ module ActiveModel
class Serializer
# @api private
class HasOneReflection < SingularReflection
def macro
:has_one
end
end
end
end