Sha256: be176b79aaee3b03c01394fea84ede7d3c1173a9ca6550bf97fc3ec349bc9544

Contents?: true

Size: 608 Bytes

Versions: 4

Compression:

Stored size: 608 Bytes

Contents

require 'rubygems'
require 'bundler'

Bundler.setup
require 'test/unit'
require 'mocha'

# Configure Rails
ENV["RAILS_ENV"] = "test"

require 'active_support'
require 'action_controller'
require 'action_dispatch/middleware/flash'

$:.unshift File.expand_path('../../lib', __FILE__)
require 'has_scope'

HasScope::Routes = ActionDispatch::Routing::RouteSet.new
HasScope::Routes.draw do
  match '/:controller(/:action(/:id))'
end

class ApplicationController < ActionController::Base
  include HasScope::Routes.url_helpers
end

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
has_scope-0.5.1 test/test_helper.rb
has_sunspot_scope-0.1.2 test/test_helper.rb
has_sunspot_scope-0.1.1 test/test_helper.rb
has_sunspot_scope-0.1 test/test_helper.rb