test/test_helper.rb in rails3-jquery-autocomplete-0.1.3 vs test/test_helper.rb in rails3-jquery-autocomplete-0.2.0
- old
+ new
@@ -1,33 +1,33 @@
require 'test/unit'
require 'rubygems'
gem 'rails', '>=3.0.0.beta4'
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+
require "active_support"
require "active_record"
require "active_model"
require "action_controller"
require "rails/railtie"
-ENV["RAILS_ENV"] = "test"
-RAILS_ROOT = "anywhere"
+require 'rails3-jquery-autocomplete'
-require "#{File.dirname(__FILE__)}/../init"
-
class ApplicationController < ActionController::Base; end
ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')
-Autocomplete::Routes = ActionDispatch::Routing::RouteSet.new
-Autocomplete::Routes.draw do |map|
+Rails3JQueryAutocomplete::Routes = ActionDispatch::Routing::RouteSet.new
+Rails3JQueryAutocomplete::Routes.draw do |map|
map.connect ':controller/:action/:id'
map.connect ':controller/:action'
end
-ActionController::Base.send :include, Autocomplete::Routes.url_helpers
+ActionController::Base.send :include, Rails3JQueryAutocomplete::Routes.url_helpers
class ActiveSupport::TestCase
setup do
- @routes = Autocomplete::Routes
+ @routes = Rails3JQueryAutocomplete::Routes
end
-end
+end
\ No newline at end of file