test/helper.rb in active_assets-0.3.1 vs test/helper.rb in active_assets-1.0.0.rc1
- old
+ new
@@ -1,17 +1,20 @@
ENV['RAILS_ENV'] ||= 'test'
require 'rubygems'
require 'test/unit'
+require 'rails/all'
+require 'active_assets'
+
require 'socket'
require 'timeout'
-TEST_RAILS_ROOT = File.expand_path('../fixtures/rails_root_23', __FILE__)
+TEST_RAILS_ROOT = File.expand_path('../fixtures/rails_root', __FILE__)
Dir[File.expand_path('../support/**/*.rb', __FILE__)].each {|f| load f }
-require File.join(TEST_RAILS_ROOT, 'config/environment.rb')
+load File.join(TEST_RAILS_ROOT, 'config/application.rb')
class Test::Unit::TestCase
include RailsHelper
def sprites