Sha256: c810f38b1c56346016c6be2c5b5b04e498d284e9ce4c8c8d1dc38d136384c618

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

require 'test/unit'

require 'rubygems'
gem 'rails', '>=3.0.0.rc'
gem 'sqlite3-ruby'

$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"

require 'rails3-jquery-autocomplete'

class ApplicationController < ActionController::Base; end

ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')

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, Rails3JQueryAutocomplete::Routes.url_helpers

class ActiveSupport::TestCase
  setup do
    @routes = Rails3JQueryAutocomplete::Routes
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails3-jquery-autocomplete-0.3.6 test/test_helper.rb
rails3-jquery-autocomplete-0.3.5 test/test_helper.rb