confidential_info_redactor_lite 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -9
- data/lib/confidential_info_redactor_lite/redactor.rb +8 -2
- data/lib/confidential_info_redactor_lite/version.rb +1 -1
- data/spec/confidential_info_redactor_lite/performance_spec.rb +41 -41
- data/spec/confidential_info_redactor_lite/redactor_spec.rb +10 -0
- metadata +1 -1
@@ -103,6 +103,16 @@ RSpec.describe ConfidentialInfoRedactorLite::Redactor do
|
|
103
103
|
text = '100'
|
104
104
|
expect(described_class.new(language: 'en', dow: en_dow, dow_abbr: en_dow_abbr, months: en_months, months_abbr: en_month_abbr).numbers(text)).to eq('<redacted number>')
|
105
105
|
end
|
106
|
+
|
107
|
+
it 'redacts numbers from a text #008' do
|
108
|
+
text = "Test '0' hello."
|
109
|
+
expect(described_class.new(language: 'en', dow: en_dow, dow_abbr: en_dow_abbr, months: en_months, months_abbr: en_month_abbr).numbers_html(text)[1]).to eq(["0"])
|
110
|
+
end
|
111
|
+
|
112
|
+
it 'redacts numbers from a text #009' do
|
113
|
+
text = "Test ‘0’ hello."
|
114
|
+
expect(described_class.new(language: 'en', dow: en_dow, dow_abbr: en_dow_abbr, months: en_months, months_abbr: en_month_abbr).numbers_html(text)[1]).to eq(["0"])
|
115
|
+
end
|
106
116
|
end
|
107
117
|
|
108
118
|
describe '#numbers_html' do
|