Lead by example: lint PORO model

This commit is contained in:
Benjamin Fleischer
2015-08-17 15:13:44 -05:00
parent e7d3323d23
commit dca286b0ec
3 changed files with 23 additions and 7 deletions

View File

@@ -106,7 +106,7 @@ module ActiveModel::Serializer::Lint
private
def resource
@resource
@resource or fail "'@resource' must be set as the linted object"
end
def assert_instance_of(result, name)