summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/tc_workbook_view.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 11:53:12 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 11:53:12 +0200
commit55526805cf28cc91a22df5811b26cd23bdefa8d3 (patch)
tree2cbc6403b385078b0ed5e275c49f0c60522bdd16 /test/workbook/tc_workbook_view.rb
parentacf00d356494ef504c3de0e4a0db6b25f2bd7636 (diff)
downloadcaxlsx-55526805cf28cc91a22df5811b26cd23bdefa8d3.tar.gz
caxlsx-55526805cf28cc91a22df5811b26cd23bdefa8d3.zip
Fix space-related offenses
- Layout/SpaceAfterComma - Layout/SpaceAroundEqualsInParameterDefault - Layout/SpaceAroundOperators - Layout/SpaceBeforeBlockBraces - Layout/SpaceInsideBlockBraces - Layout/SpaceInsideHashLiteralBraces - Layout/SpaceInsideParens
Diffstat (limited to 'test/workbook/tc_workbook_view.rb')
-rw-r--r--test/workbook/tc_workbook_view.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/workbook/tc_workbook_view.rb b/test/workbook/tc_workbook_view.rb
index 8280d8d5..6fb300a8 100644
--- a/test/workbook/tc_workbook_view.rb
+++ b/test/workbook/tc_workbook_view.rb
@@ -17,14 +17,14 @@ class TestWorkbookView < Test::Unit::TestCase
def test_boolean_attribute_validation
%w(minimized show_horizontal_scroll show_vertical_scroll show_sheet_tabs auto_filter_date_grouping).each do |attr|
assert_raise(ArgumentError, 'only booleanish allowed in boolean attributes') { @book_view.send("#{attr}=", "banana") }
- assert_nothing_raised { @book_view.send("#{attr}=", false )}
+ assert_nothing_raised { @book_view.send("#{attr}=", false) }
end
end
def test_integer_attribute_validation
%w(tab_ratio first_sheet active_tab x_window y_window window_width window_height).each do |attr|
assert_raise(ArgumentError, 'only integer allowed in integer attributes') { @book_view.send("#{attr}=", "b") }
- assert_nothing_raised { @book_view.send("#{attr}=", 7 )}
+ assert_nothing_raised { @book_view.send("#{attr}=", 7) }
end
end