confidential_info_redactor_lite 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: confidential_info_redactor_lite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias