aboutsummaryrefslogtreecommitdiffstats
path: root/test/support/fake_record.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/fake_record.rb')
-rw-r--r--test/support/fake_record.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/test/support/fake_record.rb b/test/support/fake_record.rb
index 3d4c7d5630..4867dad5dc 100644
--- a/test/support/fake_record.rb
+++ b/test/support/fake_record.rb
@@ -59,16 +59,7 @@ module FakeRecord
self
end
- def quote thing, column = nil
- if column && !thing.nil?
- case column.type
- when :integer
- thing = thing.to_i
- when :string
- thing = thing.to_s
- end
- end
-
+ def quote thing
case thing
when DateTime
"'#{thing.strftime("%Y-%m-%d %H:%M:%S")}'"
@@ -116,8 +107,8 @@ module FakeRecord
connection
end
- def quote thing, column = nil
- connection.quote thing, column
+ def quote thing
+ connection.quote thing
end
end