test/rails/helpers/unit_test_helper.rb in restfulx-1.2.5 vs test/rails/helpers/unit_test_helper.rb in restfulx-1.3.0

- old
+ new

@@ -2,28 +2,16 @@ $:.unshift(File.dirname(__FILE__) + '/../..') $:.unshift(File.dirname(__FILE__) + '/../../lib') schema_file = File.join(File.dirname(__FILE__), '..', 'schema.rb') -require 'rubygems' -require 'test/unit' - -require 'active_support' -require 'active_support/test_case' -require 'active_record' -require 'active_record/fixtures' -require 'action_controller' -require 'action_controller/test_case' -require 'action_controller/test_process' -require 'action_controller/integration' -require 'sqlite3' - +require File.join(File.dirname(__FILE__), 'test_helper') require File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'restfulx') config = YAML::load(IO.read(File.join(File.dirname(__FILE__), '..', 'database.yml')))[ENV['DB'] || 'test'] ActiveRecord::Base.configurations = config ActiveRecord::Base.establish_connection(config) load(schema_file) if File.exist?(schema_file) -ActiveSupport::TestCase.fixture_path.fixture_path = File.join(File.dirname(__FILE__), '..', 'fixtures') -$:.unshift(ActiveSupport::TestCase.fixture_path.fixture_path) +ActiveSupport::TestCase.fixture_path = File.join(File.dirname(__FILE__), '..', 'fixtures') +$:.unshift(ActiveSupport::TestCase.fixture_path) \ No newline at end of file