class RSpecJSONAPISerializer::Matchers::BelongToMatcher

Attributes

association_matcher[R]

Public Class Methods

new(expected) click to toggle source
# File lib/rspec_jsonapi_serializer/matchers/belong_to_matcher.rb, line 8
def initialize(expected)
  @association_matcher = AssociationMatcher.new(expected, :belong_to, :belongs_to)
end

Public Instance Methods

id_method_name(value) click to toggle source
# File lib/rspec_jsonapi_serializer/matchers/belong_to_matcher.rb, line 16
def id_method_name(value)
  association_matcher.id_method_name(value)
end
main_failure_message() click to toggle source
# File lib/rspec_jsonapi_serializer/matchers/belong_to_matcher.rb, line 24
def main_failure_message
  association_matcher.main_failure_message
end
matches?(serializer_instance) click to toggle source
# File lib/rspec_jsonapi_serializer/matchers/belong_to_matcher.rb, line 12
def matches?(serializer_instance)
  association_matcher.matches?(serializer_instance)
end
serializer(value) click to toggle source
# File lib/rspec_jsonapi_serializer/matchers/belong_to_matcher.rb, line 20
def serializer(value)
  association_matcher.serializer(value)
end