Sha256: 8c2d0d8cea34e4aa5d09ee1f925ebce17ab89261e9047c0196499c73a75839ca

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

require 'rails/all'

module Diesel
  module Testing
    APP_ROOT = File.expand_path('..', __FILE__).freeze

    class Application < Rails::Application
      config.encoding = "utf-8"
      config.action_mailer.default_url_options = { :host => 'localhost' }
      config.paths.config.database = "#{APP_ROOT}/database.yml"
      config.paths.log = "tmp/log"
      config.cache_classes = true
      config.whiny_nils = true
      config.consider_all_requests_local = true
      config.action_controller.perform_caching = false
      config.action_dispatch.show_exceptions = false
      config.action_controller.allow_forgery_protection = false
      config.action_mailer.delivery_method = :test
      config.active_support.deprecation = :stderr
      config.secret_token = "DIESEL" * 5 # so diesel
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
diesel-0.1.1 lib/diesel/testing/application.rb
diesel-0.1.0 lib/diesel/testing/application.rb