summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:34:58 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:55:27 +0200
commitb5d7a7a1917adb12e3ea04abe261a37f8aff7f56 (patch)
tree8e99004348e47712008b9af75da3808721e8a659 /test/stylesheet
parent9b246ec6395d49f09ab85ce0a2c024bf8d086d0c (diff)
downloadcaxlsx-b5d7a7a1917adb12e3ea04abe261a37f8aff7f56.tar.gz
caxlsx-b5d7a7a1917adb12e3ea04abe261a37f8aff7f56.zip
Fix Layout/EmptyLines offenses
``` rubocop --only Layout/EmptyLines -a ```
Diffstat (limited to 'test/stylesheet')
-rw-r--r--test/stylesheet/tc_color.rb1
-rw-r--r--test/stylesheet/tc_font.rb3
-rw-r--r--test/stylesheet/tc_gradient_fill.rb1
-rw-r--r--test/stylesheet/tc_gradient_stop.rb1
-rw-r--r--test/stylesheet/tc_num_fmt.rb1
-rw-r--r--test/stylesheet/tc_pattern_fill.rb1
-rw-r--r--test/stylesheet/tc_styles.rb1
7 files changed, 0 insertions, 9 deletions
diff --git a/test/stylesheet/tc_color.rb b/test/stylesheet/tc_color.rb
index dd8e98d2..660cc672 100644
--- a/test/stylesheet/tc_color.rb
+++ b/test/stylesheet/tc_color.rb
@@ -39,5 +39,4 @@ class TestColor < Test::Unit::TestCase
assert_equal(@item.tint, -1.0 )
end
-
end
diff --git a/test/stylesheet/tc_font.rb b/test/stylesheet/tc_font.rb
index 4d548d7c..58f84b08 100644
--- a/test/stylesheet/tc_font.rb
+++ b/test/stylesheet/tc_font.rb
@@ -9,7 +9,6 @@ class TestFont < Test::Unit::TestCase
def teardown
end
-
def test_initialiation
assert_equal(@item.name, nil)
assert_equal(@item.charset, nil)
@@ -26,8 +25,6 @@ class TestFont < Test::Unit::TestCase
assert_equal(@item.sz, nil)
end
-
-
# def name=(v) Axlsx::validate_string v; @name = v end
def test_name
assert_raise(ArgumentError) { @item.name = 7 }
diff --git a/test/stylesheet/tc_gradient_fill.rb b/test/stylesheet/tc_gradient_fill.rb
index 546941d7..b8ce757b 100644
--- a/test/stylesheet/tc_gradient_fill.rb
+++ b/test/stylesheet/tc_gradient_fill.rb
@@ -9,7 +9,6 @@ class TestGradientFill < Test::Unit::TestCase
def teardown
end
-
def test_initialiation
assert_equal(@item.type, :linear)
assert_equal(@item.degree, nil)
diff --git a/test/stylesheet/tc_gradient_stop.rb b/test/stylesheet/tc_gradient_stop.rb
index f1cf5183..1340e225 100644
--- a/test/stylesheet/tc_gradient_stop.rb
+++ b/test/stylesheet/tc_gradient_stop.rb
@@ -9,7 +9,6 @@ class TestGradientStop < Test::Unit::TestCase
def teardown
end
-
def test_initialiation
assert_equal(@item.color.rgb, "FFFF0000")
assert_equal(@item.position, 1.0)
diff --git a/test/stylesheet/tc_num_fmt.rb b/test/stylesheet/tc_num_fmt.rb
index b5b73929..5309f189 100644
--- a/test/stylesheet/tc_num_fmt.rb
+++ b/test/stylesheet/tc_num_fmt.rb
@@ -9,7 +9,6 @@ class TestNumFmt < Test::Unit::TestCase
def teardown
end
-
def test_initialiation
assert_equal(@item.numFmtId, 0)
assert_equal(@item.formatCode, "")
diff --git a/test/stylesheet/tc_pattern_fill.rb b/test/stylesheet/tc_pattern_fill.rb
index fef28248..ed567c7e 100644
--- a/test/stylesheet/tc_pattern_fill.rb
+++ b/test/stylesheet/tc_pattern_fill.rb
@@ -9,7 +9,6 @@ class TestPatternFill < Test::Unit::TestCase
def teardown
end
-
def test_initialiation
assert_equal(@item.patternType, :none)
assert_equal(@item.bgColor, nil)
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb
index b9ccfebd..9c7d56c9 100644
--- a/test/stylesheet/tc_styles.rb
+++ b/test/stylesheet/tc_styles.rb
@@ -212,7 +212,6 @@ class TestStyles < Test::Unit::TestCase
assert_equal(xf.protection.locked, true, "cell locking set")
assert_raise(ArgumentError, "should reject invalid borderId") { @styles.add_style :border => 2 }
-
assert_equal(xf.applyProtection, true, "protection applied")
assert_equal(xf.applyBorder, true, "border applied")
assert_equal(xf.applyNumberFormat,true, "number format applied")