rubygem-pg/rubygem-pg-0.18.4-ruby24-integer-unification.patch
Mamoru TASAKA 92668985b0 F-26: rebuild for ruby24
Patch from the upstream for test failure with integer unification
2017-01-15 13:17:23 +09:00

22 lines
811 B
Diff

# HG changeset patch
# User Lars Kanis <lars@greiz-reinsdorf.de>
# Date 1484422186 -3600
# Node ID a446dfaf9d8f7f0223fb42184c1ad36e42b97b17
# Parent 6ebcebaad39ca2a2496bfd5912659f35d02b409f
Bignum,Fixnum and Integer are the same in Ruby-2.4.
Fixes #255 : https://bitbucket.org/ged/ruby-pg/issues/255
diff --git a/spec/pg/type_map_by_class_spec.rb b/spec/pg/type_map_by_class_spec.rb
--- a/spec/pg/type_map_by_class_spec.rb
+++ b/spec/pg/type_map_by_class_spec.rb
@@ -59,7 +59,7 @@
it "should retrieve particular conversions" do
expect( tm[Integer] ).to eq(binaryenc_int)
expect( tm[Float] ).to eq(textenc_float)
- expect( tm[Bignum] ).to be_nil
+ expect( tm[Range] ).to be_nil
expect( derived_tm[raise_class] ).to be_kind_of(Proc)
expect( derived_tm[Array] ).to eq(:array_type_map_for)
end