aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-03-15 13:56:19 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-03-15 13:56:19 -0700
commit1f2738261f3c3c061540bb20e3a1edec96b76034 (patch)
treedeed51cd9346a06090719df9d1067c46c0064134 /activerecord
parenta594a22267bfd3346e00923742c4aa7edad0cef7 (diff)
downloadrails-1f2738261f3c3c061540bb20e3a1edec96b76034.tar.gz
rails-1f2738261f3c3c061540bb20e3a1edec96b76034.tar.bz2
rails-1f2738261f3c3c061540bb20e3a1edec96b76034.zip
Hack to keep column metadata queries out of test query counts
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/dirty_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb
index 4961d12a44..a64ccb2120 100644
--- a/activerecord/test/cases/dirty_test.rb
+++ b/activerecord/test/cases/dirty_test.rb
@@ -26,6 +26,11 @@ class NumericData < ActiveRecord::Base
end
class DirtyTest < ActiveRecord::TestCase
+ # Dummy to force column loads so query counts are clean.
+ def setup
+ Person.create :first_name => 'foo'
+ end
+
def test_attribute_changes
# New record - no changes.
pirate = Pirate.new