Commit 669332ee authored by Patrick Derichs's avatar Patrick Derichs Committed by Sean McGivern

Fix failing inspect call in case of failing spec

parent 3a5a6129
......@@ -39,6 +39,8 @@ module MergeRequests
# Don't try to print expensive instance variables.
def inspect
return "#<#{self.class}>" unless respond_to?(:merge_request)
"#<#{self.class} #{merge_request.to_reference(full: true)}>"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment