Permalink
Browse files

Fixed the overeager test running

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2609 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Oct 15, 2005
1 parent 09aae0a commit 0930256b457bb5b7b959ca334dcaaeb595c26fc5
Showing with 3 additions and 5 deletions.
  1. +1 −1 railties/lib/initializer.rb
  2. +2 −4 railties/lib/test_help.rb
@@ -102,7 +102,7 @@ def initialize_database
end
def initialize_fixture_settings
- return if configuration.environment == 'test' || !configuration.frameworks.include?(:active_record)
+ return if configuration.environment != 'test' || !configuration.frameworks.include?(:active_record)
require 'test/unit'
require 'active_record/fixtures'
@@ -8,8 +8,6 @@
Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/fixtures/"
-class Test::Unit::TestCase
- def create_fixtures(*table_names)
- Fixtures.create_fixtures(RAILS_ROOT + "/fixtures", table_names)
- end
+def create_fixtures(*table_names)
+ Fixtures.create_fixtures(RAILS_ROOT + "/fixtures", table_names)
end

0 comments on commit 0930256

Please sign in to comment.