File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ def refer_to_mentor!
173173 raise FinishedFlowControlException
174174 end
175175
176- def disapprove! ( msg , * msg_args )
176+ def disapprove! ( msg , params = { } )
177177 self . status = :disapprove
178- if msg_args . length > 0
179- self . comments << [ MESSAGES [ msg ] , * msg_args ]
178+ if params . length > 0
179+ self . comments << { comment : MESSAGES [ msg ] , params : params }
180180 else
181181 self . comments << MESSAGES [ msg ]
182182 end
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ def self.two_fer(*foos)
140140 }
141141 results = TwoFer ::Analyze . ( source )
142142 assert_equal :disapprove , results [ :status ]
143- assert_equal [ [ "ruby.two-fer.splat_args" , name_variable : :foos ] ] , results [ :comments ]
143+ assert_equal [ { comment : "ruby.two-fer.splat_args" , params : { name_variable : :foos } } ] , results [ :comments ]
144+
144145 end
145146
146147 # ###
You can’t perform that action at this time.
0 commit comments