Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/jsonapi/resources/matchers/have_attribute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ def failure_message
resource_name = resource.class.name.demodulize
%Q(expected #{resource_name} to have attribute #{name})
end

def failure_message_when_negated
resource_name = resource.class.name.demodulize
%Q(expected #{resource_name} to not have attribute #{name}, but it was present)
end

def description
"have attribute #{name}"
end

end
end
end
Expand Down