summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-07-05 11:09:35 +0200
committerGeremia Taglialatela <[email protected]>2023-07-05 11:09:35 +0200
commitd52600dfb373323641c95c3c9be952c32fee8a1a (patch)
treee18b100cb29abb6dba3fcb0dbfa231fb6396fc65 /test/workbook
parent692be9e99e0a76d5f6d0b0527466998ca558fe96 (diff)
downloadcaxlsx-d52600dfb373323641c95c3c9be952c32fee8a1a.tar.gz
caxlsx-d52600dfb373323641c95c3c9be952c32fee8a1a.zip
Fix offenses in sheet protection
- Lint/AmbiguousOperatorPrecedence - Style/PerlBackrefs - Style/StringChars - Style/UnpackFirst
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/worksheet/tc_sheet_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_sheet_protection.rb b/test/workbook/worksheet/tc_sheet_protection.rb
index ebfff4b6..11a43ac8 100644
--- a/test/workbook/worksheet/tc_sheet_protection.rb
+++ b/test/workbook/worksheet/tc_sheet_protection.rb
@@ -57,7 +57,7 @@ class TestSheetProtection < Test::Unit::TestCase
doc = Nokogiri::XML(@sp.to_xml_string)
@options.each do |key, value|
- assert(doc.xpath("//sheetProtection[@#{key.to_s.gsub(/_(.)/) { $1.upcase }}='#{value}']"))
+ assert(doc.xpath("//sheetProtection[@#{key.to_s.gsub(/_(.)/) { ::Regexp.last_match(1).upcase }}='#{value}']"))
end
end
end