module JsonapiSpec::Matchers

Public Instance Methods

be_valid_jsonapi() click to toggle source
# File lib/jsonapi_spec/matchers.rb, line 9
def be_valid_jsonapi
  JsonapiSpec::Matchers::BeValidJsonapi.new
end
have_jsonapi_attribute(attribute) click to toggle source
# File lib/jsonapi_spec/matchers.rb, line 21
def have_jsonapi_attribute(attribute)
  JsonapiSpec::Matchers::HaveJsonapiAttribute.new(attribute)
end
have_jsonapi_error() click to toggle source
# File lib/jsonapi_spec/matchers.rb, line 25
def have_jsonapi_error
  JsonapiSpec::Matchers::HaveJsonapiError.new
end
have_jsonapi_relationship(relationship) click to toggle source
# File lib/jsonapi_spec/matchers.rb, line 17
def have_jsonapi_relationship(relationship)
  JsonapiSpec::Matchers::HaveJsonapiRelationship.new(relationship)
end