aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/counter_cache_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-26 07:46:11 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-26 08:08:32 -0700
commita8afc6395b9ccbbe62c6deaa01294b4bd3aac758 (patch)
treeab66f2e5754fe496afae553520b52064c923edf7 /activerecord/test/cases/counter_cache_test.rb
parentd075c84320fab51992a1ab7d020c62ff1bad0b4e (diff)
downloadrails-a8afc6395b9ccbbe62c6deaa01294b4bd3aac758.tar.gz
rails-a8afc6395b9ccbbe62c6deaa01294b4bd3aac758.tar.bz2
rails-a8afc6395b9ccbbe62c6deaa01294b4bd3aac758.zip
Add missing test case for quoting behavior
It appears that the only time that `quote` is called with a column, but without first calling `type_cast` is when where is called with an array. My previous pull request broke this behavior, without failing tests. This adds a test for the only case I can think of that exercises the `if column.type == :integer` branch of `quote` effectively.
Diffstat (limited to 'activerecord/test/cases/counter_cache_test.rb')
0 files changed, 0 insertions, 0 deletions