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