Sha256: 4cde29d3bbc0b3848ba3ba1edf10b4d9e6e2e560b75875c68b6f669d94af83c4

Contents?: true

Size: 451 Bytes

Versions: 21

Compression:

Stored size: 451 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

    # Used by fbgraph.
    def root
      File.expand_path '../..', File.dirname(__FILE__)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
authpwn_rails-0.20.0 test/helpers/rails.rb
authpwn_rails-0.19.0 test/helpers/rails.rb
authpwn_rails-0.18.2 test/helpers/rails.rb
authpwn_rails-0.18.1 test/helpers/rails.rb
authpwn_rails-0.18.0 test/helpers/rails.rb
authpwn_rails-0.17.2 test/helpers/rails.rb
authpwn_rails-0.17.1 test/helpers/rails.rb
authpwn_rails-0.17.0 test/helpers/rails.rb
authpwn_rails-0.16.2 test/helpers/rails.rb
authpwn_rails-0.16.1 test/helpers/rails.rb
authpwn_rails-0.16.0 test/helpers/rails.rb
authpwn_rails-0.15.3 test/helpers/rails.rb
authpwn_rails-0.15.2 test/helpers/rails.rb
authpwn_rails-0.15.1 test/helpers/rails.rb
authpwn_rails-0.15.0 test/helpers/rails.rb
authpwn_rails-0.14.3 test/helpers/rails.rb
authpwn_rails-0.14.2 test/helpers/rails.rb
authpwn_rails-0.14.1 test/helpers/rails.rb
authpwn_rails-0.14.0 test/helpers/rails.rb
authpwn_rails-0.13.4 test/helpers/rails.rb