Skip to content
Browse files

Hack to keep column metadata queries out of test query counts

  • Loading branch information...
1 parent a594a22 commit 1f2738261f3c3c061540bb20e3a1edec96b76034 @jeremy jeremy committed Mar 15, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 activerecord/test/cases/dirty_test.rb
View
5 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

0 comments on commit 1f27382

Please sign in to comment.
Something went wrong with that request. Please try again.