1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Revert "fix access priorities of each level in LeveledOptions"

This reverts commit 15f0847289.

Fixes #1200
This commit is contained in:
Nate Berkopec 2017-02-09 07:05:45 -07:00
parent 42126a23d4
commit 30c12cad08
2 changed files with 1 additions and 12 deletions

View file

@ -31,7 +31,7 @@ module Puma
end
def [](key)
@set.reverse_each do |o|
@set.each do |o|
if o.key? key
return o[key]
end

View file

@ -56,17 +56,6 @@ class TestConfigFile < Minitest::Test
assert_equal 'bin/rails server', conf.options[:restart_cmd]
end
def test_overwrite_options
conf = Puma::Configuration.new do |c|
c.workers 3
end
conf.load
assert_equal conf.options[:workers], 3
conf.options[:workers] += 1
assert_equal conf.options[:workers], 4
end
private
def with_env(env = {})