diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-05-03 09:17:36 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2014-05-03 09:17:36 +0530 |
commit | 91d7b6fc11ec64a8e29c43cb576e497792dd68fa (patch) | |
tree | 17179b04c1822edf3c053feb45f300bb35efa807 /activerecord | |
parent | 2b6e3051bd97f225806029284ff021c2cf16aff9 (diff) | |
download | rails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.tar.gz rails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.tar.bz2 rails-91d7b6fc11ec64a8e29c43cb576e497792dd68fa.zip |
Test typecasting on instance rather than class itself
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/adapters/sqlite3/quoting_test.rb | 2 |
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 |