16826: Enhances teardown config check.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 14 Sep 2020 19:19:59 +0000 (16:19 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 14 Sep 2020 19:19:59 +0000 (16:19 -0300)
commitc986fef1ed1ad3967639f75d6e2d6ab0c63e4937
tree088992d645d360d2095948a21f9f203dabd40731
parent6350ddac78dbd2b29e5dc4117fd57300f7f8a098
16826: Enhances teardown config check.

It's not enough to check that .keys() returns a list of Symbols, because
ActiveRecord::OrderedOptions behaves somewhat like HashWithIndifferentAccess
so values can need to be accessed by symbol or string. So, we now check that
every hash-like config section is an OrderedOptions object and also returns
its keys as symbols.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
services/api/test/test_helper.rb