Permalink
Browse files

Fix broken test for postgresql

For some reason postgresql doesn't pass an integer value to load.

cc @tenderlove
  • Loading branch information...
1 parent 95f5f81 commit b37b6b728dbb32ed33b8aa156575bacfd8e70315 @rafaelfranca rafaelfranca committed Dec 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit b37b6b7

Please sign in to comment.