diff options
| author | Randy Morgan <[email protected]> | 2012-10-21 08:11:04 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-10-21 08:11:04 +0900 |
| commit | 9aa3ce12dfe60ec88e14166f71d1b60fba085d9a (patch) | |
| tree | eaecc533f30fea5f7212ca1e33161257ff4a8a16 /test | |
| parent | 4db2f94bb9f68b70aa27ee0b685b01cae9c3b54b (diff) | |
| download | caxlsx-9aa3ce12dfe60ec88e14166f71d1b60fba085d9a.tar.gz caxlsx-9aa3ce12dfe60ec88e14166f71d1b60fba085d9a.zip | |
Fixed indentation and whitespace
Diffstat (limited to 'test')
| -rw-r--r-- | test/content_type/tc_default.rb | 3 | ||||
| -rw-r--r-- | test/content_type/tc_override.rb | 7 |
2 files changed, 1 insertions, 9 deletions
diff --git a/test/content_type/tc_default.rb b/test/content_type/tc_default.rb index 3abfd793..d765a904 100644 --- a/test/content_type/tc_default.rb +++ b/test/content_type/tc_default.rb @@ -12,8 +12,5 @@ class TestDefault < Test::Unit::TestCase doc = Nokogiri::XML(type.to_xml_string) assert_equal(doc.xpath("Default[@ContentType='#{Axlsx::XML_CT}']").size, 1) assert_equal(doc.xpath("Default[@Extension='xml']").size, 1) - end - - end diff --git a/test/content_type/tc_override.rb b/test/content_type/tc_override.rb index c042299a..d9bec90c 100644 --- a/test/content_type/tc_override.rb +++ b/test/content_type/tc_override.rb @@ -1,9 +1,7 @@ -# -*- coding: utf-8 -*- require 'tc_helper.rb' - class TestOverride < Test::Unit::TestCase - def test_content_type_restriction + def test_content_type_restriction assert_raise(ArgumentError, "requires known content type") { Axlsx::Override.new :ContentType=>"asdf" } end @@ -12,8 +10,5 @@ class TestOverride < Test::Unit::TestCase doc = Nokogiri::XML(type.to_xml_string) assert_equal(doc.xpath("Override[@ContentType='#{Axlsx::CHART_CT}']").size, 1) assert_equal(doc.xpath("Override[@PartName='somechart.xml']").size, 1) - end - - end |
