test/support/isolation_abstract_unit.rb
# Make a very basic app, without creating the whole directory structure.
# This is faster and simpler than the method above.
Make a very basic app, without creating the whole directory structure.
This is faster and simpler than the method above.
Make a very basic app without creating the whole directory structure . This is faster and simpler than the method above .
def make_basic_app
      require "rails"
      require "action_controller/railtie"
      app = Class.new(Rails::Application)
      app.config.eager_load = false
      app.config.secret_token = "3b7cd727ee24e8444053437c36cc66c4"
      app.config.session_store :cookie_store, key: "_myapp_session"
      app.config.active_support.deprecation = :log
      yield app if block_given?
      app.initialize!
      app.routes.draw do
        get "/" => "omg#index"
      end
      require 'rack/test'
      extend ::Rack::Test::Methods
    end
def make_basic_app require "rails" require "action_controller/railtie" app = Class . new ( Rails :: Application ) app . config . eager_load = false app . config . secret_token = "3b7cd727ee24e8444053437c36cc66c4" app . config . session_store :cookie_store , key : "_myapp_session" app . config . active_support . deprecation = :log yield app if block_given? app . initialize! app . routes . draw do get "/" => "omg#index" end require 'rack/test' extend :: Rack :: Test :: Methods end
Make a very basic app, without creating the whole directory structure.
Make a very basic app without creating the whole directory structure .