aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql/quoting_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-06-11 14:11:52 +0200
committerYves Senn <yves.senn@gmail.com>2015-06-11 14:12:16 +0200
commit81ae632d08ce06834ba46a5ffc505e9128b3d1a0 (patch)
treef0761b38451ecf6d473c44ce768428a3a753ff10 /activerecord/test/cases/adapters/mysql/quoting_test.rb
parent54d84cbb77a7fbc6359eda4eb40cc7da29c426e1 (diff)
downloadrails-81ae632d08ce06834ba46a5ffc505e9128b3d1a0.tar.gz
rails-81ae632d08ce06834ba46a5ffc505e9128b3d1a0.tar.bz2
rails-81ae632d08ce06834ba46a5ffc505e9128b3d1a0.zip
make it possible to run AR tests with bin/test
Diffstat (limited to 'activerecord/test/cases/adapters/mysql/quoting_test.rb')
-rw-r--r--activerecord/test/cases/adapters/mysql/quoting_test.rb24
1 files changed, 9 insertions, 15 deletions
diff --git a/activerecord/test/cases/adapters/mysql/quoting_test.rb b/activerecord/test/cases/adapters/mysql/quoting_test.rb
index a2206153e9..a296cf9d31 100644
--- a/activerecord/test/cases/adapters/mysql/quoting_test.rb
+++ b/activerecord/test/cases/adapters/mysql/quoting_test.rb
@@ -1,21 +1,15 @@
require "cases/helper"
-module ActiveRecord
- module ConnectionAdapters
- class MysqlAdapter
- class QuotingTest < ActiveRecord::TestCase
- def setup
- @conn = ActiveRecord::Base.connection
- end
+class MysqlQuotingTest < ActiveRecord::MysqlTestCase
+ def setup
+ @conn = ActiveRecord::Base.connection
+ end
- def test_type_cast_true
- assert_equal 1, @conn.type_cast(true)
- end
+ def test_type_cast_true
+ assert_equal 1, @conn.type_cast(true)
+ end
- def test_type_cast_false
- assert_equal 0, @conn.type_cast(false)
- end
- end
- end
+ def test_type_cast_false
+ assert_equal 0, @conn.type_cast(false)
end
end