aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-05-03 09:17:36 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2014-05-03 09:17:36 +0530
commit91d7b6fc11ec64a8e29c43cb576e497792dd68fa (patch)
tree17179b04c1822edf3c053feb45f300bb35efa807 /activerecord/test/cases
parent2b6e3051bd97f225806029284ff021c2cf16aff9 (diff)
downloadrails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.tar.gz
rails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.tar.bz2
rails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.zip
Test typecasting on instance rather than class itself
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/adapters/sqlite3/quoting_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
index ba89487838..e4b69fdf7b 100644
--- a/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
+++ b/activerecord/test/cases/adapters/sqlite3/quoting_test.rb
@@ -100,7 +100,7 @@ module ActiveRecord
def quoted_id
"'zomg'"
end
- }
+ }.new
assert_raise(TypeError) { @conn.type_cast(quoted_id_obj, nil) }
end
end