aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-21 15:56:07 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-21 15:58:43 -0300
commitb37b6b728dbb32ed33b8aa156575bacfd8e70315 (patch)
treef9c17bd97a68523ad8204a5f1d879580dae9b0eb /activerecord
parent95f5f8167ff86550d7fa9f5f7419cc9b38ef9704 (diff)
downloadrails-b37b6b728dbb32ed33b8aa156575bacfd8e70315.tar.gz
rails-b37b6b728dbb32ed33b8aa156575bacfd8e70315.tar.bz2
rails-b37b6b728dbb32ed33b8aa156575bacfd8e70315.zip
Fix broken test for postgresql
For some reason postgresql doesn't pass an integer value to load. cc @tenderlove
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/models/person.rb2
1 files changed, 1 insertions, 1 deletions
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