File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,8 @@ def errors(xcode_summary)
207207
208208 def parse_location ( input )
209209 file_path , line , _column = input [ :file_path ] . split ( ':' )
210- Location . new ( input [ :file_name ] , file_path , line . to_i )
210+ file_name = relative_path ( file_path )
211+ Location . new ( file_name , file_path , line . to_i )
211212 end
212213
213214 def parse_test_location ( failure )
Original file line number Diff line number Diff line change @@ -131,13 +131,13 @@ module Danger
131131 expect ( @xcode_summary ) . to have_received ( :warn ) . with (
132132 instance_of ( String ) ,
133133 sticky : false ,
134- file : 'Bla.m' ,
134+ file : 'MyWeight/ Bla.m' ,
135135 line : 32
136136 )
137137 expect ( @xcode_summary ) . to have_received ( :warn ) . with (
138138 instance_of ( String ) ,
139139 sticky : false ,
140- file : 'ISO8601DateFormatter.m' ,
140+ file : 'MyWeight/Pods/ISO8601DateFormatter/ ISO8601DateFormatter.m' ,
141141 line : 176
142142 )
143143 end
You can’t perform that action at this time.
0 commit comments