diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-07-05 14:17:33 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-05 14:17:33 +0200 |
| commit | c7be63637220c57eb1b8d3afcff77a49aaa7a3ef (patch) | |
| tree | 7b34212665e55d7a2b202de843aa37de571a25e7 /test/workbook/worksheet/tc_sheet_protection.rb | |
| parent | d84f333fc3115025ddbc38c274cd6b2e818b4154 (diff) | |
| parent | d52600dfb373323641c95c3c9be952c32fee8a1a (diff) | |
| download | caxlsx-c7be63637220c57eb1b8d3afcff77a49aaa7a3ef.tar.gz caxlsx-c7be63637220c57eb1b8d3afcff77a49aaa7a3ef.zip | |
Merge pull request #293 from tagliala/chore/fix-offenses-in-sheet-protection
Fix offenses in sheet protection
Diffstat (limited to 'test/workbook/worksheet/tc_sheet_protection.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_sheet_protection.rb | 2 |
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 |
