summaryrefslogtreecommitdiffhomepage
path: root/test/content_type
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-08 00:12:18 +0200
committerGeremia Taglialatela <[email protected]>2023-04-08 00:12:18 +0200
commit5d68145521afe5c5912ceebae2f7e784eb5f8954 (patch)
tree5289c654cb213de98a6c812fbe581e2609f6615a /test/content_type
parent7f077b55bf963c6e855c6c9066c6aed4926fb8e3 (diff)
downloadcaxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.tar.gz
caxlsx-5d68145521afe5c5912ceebae2f7e784eb5f8954.zip
Fix EmptyLines related offenses
Diffstat (limited to 'test/content_type')
-rw-r--r--test/content_type/tc_content_type.rb3
-rw-r--r--test/content_type/tc_default.rb1
-rw-r--r--test/content_type/tc_override.rb1
3 files changed, 0 insertions, 5 deletions
diff --git a/test/content_type/tc_content_type.rb b/test/content_type/tc_content_type.rb
index 60fa9c76..278cd67b 100644
--- a/test/content_type/tc_content_type.rb
+++ b/test/content_type/tc_content_type.rb
@@ -12,7 +12,6 @@ class TestContentType < Test::Unit::TestCase
end
def test_pre_built_types
-
o_path = "//xmlns:Override[@ContentType='%s']"
d_path = "//xmlns:Default[@ContentType='%s']"
@@ -53,7 +52,6 @@ class TestContentType < Test::Unit::TestCase
doc = Nokogiri::XML(@package.send(:content_types).to_xml_string)
assert_equal(doc.xpath("//xmlns:Override").size, 6, "adding workship should add another type")
assert_equal(doc.xpath(o_path % Axlsx::WORKSHEET_CT).last["PartName"], "/xl/#{ws.pn}", "Worksheet part invalid")
-
end
def test_drawings_and_charts_need_content_types
@@ -71,5 +69,4 @@ class TestContentType < Test::Unit::TestCase
assert_equal(doc.xpath("//xmlns:Override").size, 8, "expected 7 types got #{doc.css("Types Override").size}")
assert_equal(doc.xpath(o_path % Axlsx::CHART_CT).last["PartName"], "/xl/#{c.pn}", "Chart part name invlid")
end
-
end
diff --git a/test/content_type/tc_default.rb b/test/content_type/tc_default.rb
index b6c040ac..77915ea0 100644
--- a/test/content_type/tc_default.rb
+++ b/test/content_type/tc_default.rb
@@ -1,7 +1,6 @@
require 'tc_helper.rb'
class TestDefault < Test::Unit::TestCase
-
def test_content_type_restriction
assert_raise(ArgumentError, "raises argument error if invlalid ContentType is") { Axlsx::Default.new :ContentType=>"asdf" }
end
diff --git a/test/content_type/tc_override.rb b/test/content_type/tc_override.rb
index d9bec90c..c21f9f27 100644
--- a/test/content_type/tc_override.rb
+++ b/test/content_type/tc_override.rb
@@ -1,6 +1,5 @@
require 'tc_helper.rb'
class TestOverride < Test::Unit::TestCase
-
def test_content_type_restriction
assert_raise(ArgumentError, "requires known content type") { Axlsx::Override.new :ContentType=>"asdf" }
end