diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-13 13:09:14 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-03 16:05:17 +0200 |
| commit | e81036b76e734ab03fac31faafb9732f6b3b2928 (patch) | |
| tree | 4a5944faddeac7aa574a26955d41f4901fccc038 /test/content_type | |
| parent | 194e852d4f61d7c1acf4cd79df86bee43d84028a (diff) | |
| download | caxlsx-e81036b76e734ab03fac31faafb9732f6b3b2928.tar.gz caxlsx-e81036b76e734ab03fac31faafb9732f6b3b2928.zip | |
Fix offenses to non-production code
- Lint/AmbiguousBlockAssociation
- Lint/AmbiguousOperatorPrecedence
- Lint/EmptyBlock
- Lint/RedundantSplatExpansion
- Lint/RedundantStringCoercion
- Lint/SymbolConversion
- Lint/UnusedBlockArgument
- Style/BlockDelimiters
- Style/CommentAnnotation
- Style/EachForSimpleLoop
- Style/EmptyMethod
- Style/ExpandPathArguments
- Style/FileWrite
- Style/GlobalStdStream (UNSAFE)
- Style/HashEachMethods (UNSAFE)
- Style/NestedParenthesizedCalls
- Style/NilComparison
- Style/NumericLiteralPrefix (manually fixed)
- Style/ParallelAssignment
- Style/PreferredHashMethods (UNSAFE)
- Style/RedundantInterpolation (UNSAFE)
- Style/RedundantParentheses (UNSAFE)
- Style/RegexpLiteral
- Style/RescueStandardError
- Style/SpecialGlobalVars (UNSAFE)
- Style/SymbolProc (UNSAFE)
- Style/ZeroLengthPredicate (UNSAFE)
Diffstat (limited to 'test/content_type')
| -rw-r--r-- | test/content_type/tc_content_type.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/content_type/tc_content_type.rb b/test/content_type/tc_content_type.rb index c79352ff..a657f7e2 100644 --- a/test/content_type/tc_content_type.rb +++ b/test/content_type/tc_content_type.rb @@ -19,10 +19,10 @@ class TestContentType < Test::Unit::TestCase assert_equal(@doc.xpath("//xmlns:Default").size, 2, "There should be 2 default types") node = @doc.xpath(d_path % Axlsx::XML_CT).first - assert_equal(node["Extension"], "#{Axlsx::XML_EX}", "xml content type invalid") + assert_equal(node["Extension"], Axlsx::XML_EX.to_s, "xml content type invalid") node = @doc.xpath(d_path % Axlsx::RELS_CT).first - assert_equal(node["Extension"], "#{Axlsx::RELS_EX}", "relationships content type invalid") + assert_equal(node["Extension"], Axlsx::RELS_EX.to_s, "relationships content type invalid") # overrride assert_equal(@doc.xpath("//xmlns:Override").size, 4, "There should be 4 Override types") |
