You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though count may not work if the last line does not end with "\n". The "_erbout" is ugly so a utility function like the capture method in rails could be used.
The text was updated successfully, but these errors were encountered:
The 'templates_custom/default/method_details/html/specs.erb' spec causes an exception as .times expects a block. The line:
<%= spec[:source].split("\n").size.times.to_a.map {|i| spec[:line] + i }.join("\n") %>
should read:
<%= (0..(spec[:source].split("\n").size)).map { |i| _erbout << spec[:line] + i } %>
or alternatively:
<%= spec[:source].count("\n").times { |i| _erbout << spec[:line] + i } %>
Though count may not work if the last line does not end with "\n". The "_erbout" is ugly so a utility function like the capture method in rails could be used.
The text was updated successfully, but these errors were encountered: