|
571 | 571 | nested_array = params['nested_array']
|
572 | 572 | first_data = nested_array[0]
|
573 | 573 | expect(first_data['update_time'].class).to eq DateTime
|
574 |
| - |
575 |
| - if Gem::Version.create(RUBY_VERSION) <= Gem::Version.create('2.4.0') |
576 |
| - expect(first_data['per_page'].class).to eq Fixnum # rubocop:disable Lint/UnifiedInteger |
577 |
| - else |
578 |
| - expect(first_data['per_page'].class).to eq Integer |
579 |
| - end |
| 574 | + expect(first_data['per_page'].class).to eq Integer |
580 | 575 | end
|
581 | 576 | end
|
582 | 577 |
|
|
774 | 769 | nested_array = params['nested_array']
|
775 | 770 | first_data = nested_array[0]
|
776 | 771 | expect(first_data['update_time'].class).to eq String
|
777 |
| - if Gem::Version.create(RUBY_VERSION) <= Gem::Version.create('2.4.0') |
778 |
| - expect(first_data['per_page'].class).to eq Fixnum # rubocop:disable Lint/UnifiedInteger |
779 |
| - else |
780 |
| - expect(first_data['per_page'].class).to eq Integer |
781 |
| - end |
| 772 | + expect(first_data['per_page'].class).to eq Integer |
782 | 773 |
|
783 | 774 | second_data = nested_array[1]
|
784 | 775 | expect(second_data['update_time'].class).to eq String
|
785 |
| - if Gem::Version.create(RUBY_VERSION) <= Gem::Version.create('2.4.0') |
786 |
| - expect(first_data['per_page'].class).to eq Fixnum # rubocop:disable Lint/UnifiedInteger |
787 |
| - else |
788 |
| - expect(first_data['per_page'].class).to eq Integer |
789 |
| - end |
| 776 | + expect(first_data['per_page'].class).to eq Integer |
790 | 777 | expect(second_data['threshold'].class).to eq Float
|
791 | 778 |
|
792 | 779 | third_data = nested_array[2]
|
793 |
| - if Gem::Version.create(RUBY_VERSION) <= Gem::Version.create('2.4.0') |
794 |
| - expect(first_data['per_page'].class).to eq Fixnum # rubocop:disable Lint/UnifiedInteger |
795 |
| - else |
796 |
| - expect(first_data['per_page'].class).to eq Integer |
797 |
| - end |
| 780 | + expect(first_data['per_page'].class).to eq Integer |
798 | 781 | expect(third_data['threshold'].class).to eq Float
|
799 | 782 |
|
800 | 783 | expect(first_data['nested_coercer_object']['update_time'].class).to eq String
|
|
0 commit comments