Use `subject` from https://github.com/rapid7/metasploit-framework/pull/2717/files#r8071738 and you can change this to `it { should be_directory }` and it will still print the same description.