Sha256: 57ab2954fe1fe490bb7525d7cb729440112a043cb1ddad522fe3a7c8b23802ec
Contents?: true
Size: 634 Bytes
Versions: 5
Compression:
Stored size: 634 Bytes
Contents
def setup_file_blobs_routes # The routes used in all the tests. routes = ActionDispatch::Routing::RouteSet.new routes.draw do get '/file_blob_gem_test/:id' => 'file_blob_gem_test#show' post '/file_blob_gem_test' => 'file_blob_gem_test#create' end # NOTE: ActionController tests expect @routes to be set to the drawn routes. # We use the block form of define_method to capture the routes local # variable. ActionController::TestCase.send :define_method, :setup_file_blobs_routes do @routes = routes end ActionController::TestCase.setup :setup_file_blobs_routes end setup_file_blobs_routes
Version data entries
5 entries across 5 versions & 1 rubygems