class EngineTest

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File railties/test/engine_test.rb, line 8
def initialize(*args)
  @routes = nil
  super
end

Public Instance Methods

test_application_can_be_subclassed() click to toggle source
# File railties/test/engine_test.rb, line 17
def test_application_can_be_subclassed
  klass = Class.new(Quails::Application) do
    attr_reader :hello
    def initialize
      @hello = "world"
      super
    end
  end
  assert_equal "world", klass.instance.hello
end