test/test_helper.rb in thoughtbot-shoulda-2.10.1 vs test/test_helper.rb in thoughtbot-shoulda-2.10.2
- old
+ new
@@ -14,20 +14,13 @@
# Run the migrations
ActiveRecord::Migration.verbose = false
ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
# Setup the fixtures path
-Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), "fixtures")
+ActiveSupport::TestCase.fixture_path =
+ File.join(File.dirname(__FILE__), "fixtures")
-class Test::Unit::TestCase #:nodoc:
- def create_fixtures(*table_names)
- if block_given?
- Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
- else
- Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
- end
- end
-
+class ActiveSupport::TestCase #:nodoc:
self.use_transactional_fixtures = false
self.use_instantiated_fixtures = false
end
require 'test/fail_macros'