Skip to content

Commit

Permalink
Fix silly error with array append
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-harvey committed May 17, 2020
1 parent 4e37895 commit 7e78366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/table_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1952,7 +1952,7 @@
line_indices_encountered = []
header_styler = -> (str, column_index, line_index) do
expect(column_index).to eq(2)
line_indices_encountered.append << line_index
line_indices_encountered << line_index
line_index.even? ? "\033[31;1;4m#{str}\033[0m" : str
end
table.add_column("Multiplied by three\nOK?", header_styler: header_styler) { |n| n * 3 }
Expand Down

0 comments on commit 7e78366

Please sign in to comment.