I felt the same way. I'll refactor this. I was thinking something like

`assert_config_contains expected_hash, cmd`