Sha256: 20506f051e124382cb9f700aaba3e675a75bbcca226121e1f5a538e0cc1b707e

Contents?: true

Size: 351 Bytes

Versions: 5

Compression:

Stored size: 351 Bytes

Contents

# Fake application.
module AuthpwnApp
  class Application
    def config
      @_config ||= Authpwn::Engine.config
    end
  end
end

# Mock Rails.application.
module Rails
  class <<self
    # Used by the initializer.
    alias_method :_real_application, :application
    def application
      @_app ||= AuthpwnApp::Application.new
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authpwn_rails-0.23.0 test/helpers/rails.rb
authpwn_rails-0.22.1 test/helpers/rails.rb
authpwn_rails-0.22.0 test/helpers/rails.rb
authpwn_rails-0.21.1 test/helpers/rails.rb
authpwn_rails-0.21.0 test/helpers/rails.rb