aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-10-18 23:52:07 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-10-18 23:52:07 +0000
commit328ef3feaad4c110a7277e3432e9203c7fbbb9e2 (patch)
tree30337b862f5752c5a2f76c123abf28d94140bc4c /activerecord/test
parent311342d8e231f8429e270dce2b1bf4abeb7b4293 (diff)
downloadrails-328ef3feaad4c110a7277e3432e9203c7fbbb9e2.tar.gz
rails-328ef3feaad4c110a7277e3432e9203c7fbbb9e2.tar.bz2
rails-328ef3feaad4c110a7277e3432e9203c7fbbb9e2.zip
Parenthesize :conditions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/fixtures_test.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/activerecord/test/fixtures_test.rb b/activerecord/test/fixtures_test.rb
index e3a37b99a3..0e3176725b 100755
--- a/activerecord/test/fixtures_test.rb
+++ b/activerecord/test/fixtures_test.rb
@@ -168,8 +168,12 @@ class FixturesTest < Test::Unit::TestCase
end
end
end
+end
+
+if Account.connection.respond_to?(:reset_pk_sequence!)
+ class FixturesResetPkSequenceTest < Test::Unit::TestCase
+ fixtures :accounts
- if Account.connection.respond_to?(:reset_pk_sequence!)
def test_resets_to_min_pk
Account.delete_all
Account.connection.reset_pk_sequence!(Account.table_name)
@@ -284,11 +288,4 @@ class ForeignKeyFixturesTest < Test::Unit::TestCase
def test_number2
assert true
end
-
end
-
-
-
-
-
-