Skip to content

Commit 6ccfda4

Browse files
sidanesunitparekh
authored andcommitted
Fix deprecation warnings in specs
As of Ruby 2.4 `Bignum` and `Fixnum` are deprecated, use `Integer` instead.
1 parent 47faf06 commit 6ccfda4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/acceptance/mongodb_whitelist_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
feature1 = plan['features'][0]
9696
[10737418240, 21474836480, 53687091200].should include(feature1['max_storage'])
9797
feature1['type'].should == 'AmazonS3'
98-
feature1['users']['max'].should be_kind_of(Fixnum)
98+
feature1['users']['max'].should be_kind_of(Integer)
9999
[true,false].should include(feature1['users']['additional'])
100100

101101

spec/strategy/field/default_anon_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
let(:field) {DataAnon::Core::Field.new('int_field',2,1,nil)}
3030
let(:anonymized_value) {DefaultAnon.new.anonymize(field)}
3131

32-
it { anonymized_value.should be_kind_of Fixnum }
32+
it { anonymized_value.should be_kind_of Integer }
3333
end
3434

3535
describe 'anonymized bignum value' do
3636
let(:field) {DataAnon::Core::Field.new('int_field',2348723489723847382947,1,nil)}
3737
let(:anonymized_value) {DefaultAnon.new.anonymize(field)}
3838

39-
it { anonymized_value.should be_kind_of Bignum }
39+
it { anonymized_value.should be_kind_of Integer }
4040
end
4141

4242
describe 'anonymized string value' do

0 commit comments

Comments
 (0)