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!
173
173
raise FinishedFlowControlException
174
174
end
175
175
176
- def disapprove! ( msg , * msg_args )
176
+ def disapprove! ( msg , params = { } )
177
177
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 }
180
180
else
181
181
self . comments << MESSAGES [ msg ]
182
182
end
Original file line number Diff line number Diff line change @@ -140,7 +140,8 @@ def self.two_fer(*foos)
140
140
}
141
141
results = TwoFer ::Analyze . ( source )
142
142
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
+
144
145
end
145
146
146
147
# ###
You can’t perform that action at this time.
0 commit comments