Skip to content
代码片段 群组 项目
提交 669332ee 编辑于 作者: Patrick Derichs's avatar Patrick Derichs 提交者: Sean McGivern
浏览文件

Fix failing inspect call in case of failing spec

上级 3a5a6129
No related branches found
No related tags found
无相关合并请求
...@@ -39,6 +39,8 @@ def target_project ...@@ -39,6 +39,8 @@ def target_project
# Don't try to print expensive instance variables. # Don't try to print expensive instance variables.
def inspect def inspect
return "#<#{self.class}>" unless respond_to?(:merge_request)
"#<#{self.class} #{merge_request.to_reference(full: true)}>" "#<#{self.class} #{merge_request.to_reference(full: true)}>"
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册