make nested properties work better

This commit is contained in:
wvengen 2014-09-02 14:43:45 +02:00
parent 1a3b690757
commit 10a193add3
2 changed files with 17 additions and 9 deletions

View file

@ -38,6 +38,7 @@ describe 'admin/configs', type: :feature do
def get_full_config
cfg = FoodsoftConfig.to_hash.deep_dup
cfg.each {|k,v| v.reject! {|k,v| v.blank?} if v.is_a? Hash}
cfg.reject! {|k,v| v.blank?}
cfg
end