Sha256: 45fe366dce4e8a3c34b54808f008c11b3bac5dafff29d08012ffe98aea6b17b6

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

require 'bundler/setup'
require 'minitest/autorun'
require 'action_controller'
require 'active_record'
require 'action_controller/action_caching'

FIXTURE_LOAD_PATH = File.join(File.dirname(__FILE__), 'fixtures')

SharedTestRoutes = ActionDispatch::Routing::RouteSet.new

module ActionController
  class Base
    include SharedTestRoutes.url_helpers

    self.view_paths = FIXTURE_LOAD_PATH
  end

  class TestCase
    def setup
      @routes = SharedTestRoutes

      @routes.draw do
        get ':controller(/:action)'
      end
    end
  end
end

module RackTestUtils
  def body_to_string(body)
    if body.respond_to?(:each)
      str = ''
      body.each {|s| str << s }
      str
    else
      body
    end
  end
  extend self
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionpack-action_caching-1.1.1/test/abstract_unit.rb
actionpack-action_caching-1.1.1 test/abstract_unit.rb
actionpack-action_caching-1.1.0 test/abstract_unit.rb
actionpack-action_caching-1.0.0 test/abstract_unit.rb