aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/fake_record.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/fake_record.rb b/spec/support/fake_record.rb
index eb6aa2c472..2aba0c10f2 100644
--- a/spec/support/fake_record.rb
+++ b/spec/support/fake_record.rb
@@ -39,6 +39,11 @@ module FakeRecord
end
def quote thing, column = nil
+ if column && column.type == :integer
+ return 'NULL' if thing.nil?
+ return thing.to_i
+ end
+
case thing
when true
"'t'"