Sha256: 6413f3ae3e5d14b4f987d74ba07295606251b91d070d7d5e2002adddf68df57e

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

class ClassLoadingSystemSpecController < ApplicationController
  def the_class_should_not_load
    render :text => ::ClassLoadingSystemSpec::ClassShouldNotLoad.name
  end

  def lib_views
    # nothing here
  end

  def app_models
    # nothing here
  end

  def some_namespace
    render :text => ::SomeNamespace.name
  end

  def some_other_namespace
    render :text => ::SomeNamespace::SomeOtherNamespace.name
  end

  def views_some_namespace
    render :text => ::Views::SomeNamespace.name
  end

  def views_some_other_namespace
    render :text => ::Views::SomeNamespace::SomeOtherNamespace.name
  end

  def autoload_widget
    render :text => Views::AutoloadNamespace::AutoloadWidget.is_here
  end

  def autoload_one_widget_from_another
    # nothing here
  end

  def use_lib_widget_from_view_widget
    # nothing here
  end

  def use_models_widget_from_view_widget
    # nothing here
  end

  def widget_defined_outside_app_views
    require 'views/class_loading_system_spec/widget_defined_outside_app_views'

    # nothing else here
  end

  def underscore_view
    # nothing here
  end

  def foo
    # nothing here
  end

  def bar
    # nothing here
  end

  def require_loaded_underscore_widget_without_views
    require 'class_loading_system_spec/_loaded_underscore_widget'
    render :text => "good!"
  end

  def require_loaded_underscore_widget_with_views
    require 'views/class_loading_system_spec/_loaded_underscore_widget'
    render :text => "good!"
  end

  def render_widget_outside_app_views
    require 'arbitrary_name/some_widget'
    render :widget => ArbitraryName::SomeWidget.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fortitude-0.0.10-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.10 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.9-java spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb
fortitude-0.0.9 spec/rails/templates/class_loading_system_spec/app/controllers/class_loading_system_spec_controller.rb