Sha256: 1fb52a7e1d9d41ab1bb0a1172d34df69872dd8f707e799adcdcf26c9111693d1
Contents?: true
Size: 717 Bytes
Versions: 3
Compression:
Stored size: 717 Bytes
Contents
require 'bundler/setup' require 'minitest/autorun' require 'mocha' require 'mocha/mini_test' # Configure Rails ENV['RAILS_ENV'] = 'test' require 'active_support' require 'active_support/core_ext/string/strip' 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 get '/:controller(/:action(/:id))' end class ApplicationController < ActionController::Base include HasScope::Routes.url_helpers end class ActiveSupport::TestCase self.test_order = :random if respond_to?(:test_order=) setup do @routes = HasScope::Routes end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
has_scope-0.7.2 | test/test_helper.rb |
has_scope-0.7.1 | test/test_helper.rb |
has_scope-0.7.0 | test/test_helper.rb |