From b37b6b728dbb32ed33b8aa156575bacfd8e70315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 21 Dec 2012 15:56:07 -0300 Subject: Fix broken test for postgresql For some reason postgresql doesn't pass an integer value to load. cc @tenderlove --- activerecord/test/models/person.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/models/person.rb') diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb index f9684b0bcd..c602ca5eac 100644 --- a/activerecord/test/models/person.rb +++ b/activerecord/test/models/person.rb @@ -106,7 +106,7 @@ class Insure def self.load mask INSURES.select do |insure| - (1 << INSURES.index(insure)) & mask > 0 + (1 << INSURES.index(insure)) & mask.to_i > 0 end end -- cgit v1.2.3