class Object

Constants

APP_PATH
DEVISE_ORM
ExpectedRoutingError

Public Instance Methods

simulate_inside_engine(engine, namespace) { || ... } click to toggle source
# File test/generators/active_record_generator_test.rb, line 54
def simulate_inside_engine(engine, namespace)
  if Rails::Generators.respond_to?(:namespace=)
    swap Rails::Generators, namespace: namespace do
      yield
    end
  else
    swap Rails, application: engine.instance do
      yield
    end
  end
end