nil? should be false is hard to understand use:
```dir_stat.instance_variable_get(:@files).has_key?('const_file').should be(true)```