Sha256: 9ccb8540c93e443273d546b9c994cf72018bdb3f7072dd315522e002ad9f1656
Contents?: true
Size: 805 Bytes
Versions: 2
Compression:
Stored size: 805 Bytes
Contents
require 'application/configuration/base_test' class ApplicationTests::ConfigurationTests::CustomTest < ApplicationTests::ConfigurationTests::BaseTest test 'access custom configuration point' do add_to_config <<-RUBY config.x.payment_processing.schedule = :daily config.x.payment_processing.retries = 3 config.x.super_debugger = true config.x.hyper_debugger = false config.x.nil_debugger = nil RUBY require_environment x = Rails.configuration.x assert_equal :daily, x.payment_processing.schedule assert_equal 3, x.payment_processing.retries assert_equal true, x.super_debugger assert_equal false, x.hyper_debugger assert_equal nil, x.nil_debugger assert_nil x.i_do_not_exist.zomg end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/railties/test/application/configuration/custom_test.rb |
activejob-lock-0.0.1 | rails/railties/test/application/configuration/custom_test.rb |